summaryrefslogtreecommitdiffstats
path: root/xlators/features/index/src/index.h
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2015-11-02 08:55:46 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-04-30 06:44:07 -0700
commit0eb8e055b739112ac8b70073ef6e4e3f57c43e08 (patch)
tree185c3337ed571b58f10fdd1055bee86675e605fa /xlators/features/index/src/index.h
parent9b60198b1a22228f85615e377c9b0cbe1e4f4ce6 (diff)
afr/index: changes for granular entry self-heal
Implements new indices type ENTRY_CHANGES where other xlators can add/delete names. Change-Id: I01c5568997085e11d22ba36a4376c70b78fb3827 BUG: 1269461 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/12482 Tested-by: Krutika Dhananjay <kdhananj@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/features/index/src/index.h')
-rw-r--r--xlators/features/index/src/index.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/xlators/features/index/src/index.h b/xlators/features/index/src/index.h
index bec0152a145..44e0039ff70 100644
--- a/xlators/features/index/src/index.h
+++ b/xlators/features/index/src/index.h
@@ -27,8 +27,9 @@ typedef enum {
} index_state_t;
typedef enum {
- PENDING,
+ XATTROP,
DIRTY,
+ ENTRY_CHANGES,
XATTROP_TYPE_END
} index_xattrop_type_t;
@@ -36,6 +37,8 @@ typedef struct index_inode_ctx {
gf_boolean_t processing;
struct list_head callstubs;
int state[XATTROP_TYPE_END];
+ uuid_t virtual_pargfid; /* virtual gfid of dir under
+ .glusterfs/indices/entry-changes. */
} index_inode_ctx_t;
typedef struct index_fd_ctx {
@@ -48,8 +51,7 @@ typedef struct index_priv {
char *dirty_basepath;
uuid_t index;
gf_lock_t lock;
- uuid_t xattrop_vgfid;//virtual gfid of the xattrop index dir
- uuid_t dirty_vgfid; // virtual gfid of the on-going/dirty index dir
+ uuid_t internal_vgfid[XATTROP_TYPE_END];
struct list_head callstubs;
pthread_mutex_t mutex;
pthread_cond_t cond;