summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-types.h
diff options
context:
space:
mode:
authorAshish Pandey <aspandey@redhat.com>2016-08-22 16:03:13 +0530
committerXavier Hernandez <xhernandez@datalab.es>2016-09-15 23:26:28 -0700
commit660ca23dee3a0f1a7128d3777589467b27af514b (patch)
tree350f67cb304335721434a218fcb8a8d16d32b6e4 /xlators/cluster/ec/src/ec-types.h
parente3494a0e043f83c39b865419034bd9ab980fd3a6 (diff)
cluster/ec: set/unset dirty flag for data/metadata update
Currently, for all the update operations, metadata or data, we set the dirty flag at the end of the operation only if a brick is down. This leads to delay in healing and in some cases not at all. In this patch we set (+1) the dirty flag at the start of the metadata or data update operations and after successfull completion of the fop, we unset (-1) it again. Change-Id: Ide5668bdec7b937a61c5c840cdc79a967598e1e9 BUG: 1316873 Signed-off-by: Ashish Pandey <aspandey@redhat.com> Reviewed-on: http://review.gluster.org/13733 Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Diffstat (limited to 'xlators/cluster/ec/src/ec-types.h')
-rw-r--r--xlators/cluster/ec/src/ec-types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-types.h b/xlators/cluster/ec/src/ec-types.h
index 29f892f01be..5249ca980c2 100644
--- a/xlators/cluster/ec/src/ec-types.h
+++ b/xlators/cluster/ec/src/ec-types.h
@@ -229,7 +229,8 @@ struct _ec_lock {
uint32_t refs_owners; /* Refs for fops owning the lock */
uint32_t refs_pending; /* Refs assigned to fops being prepared */
gf_boolean_t acquired;
- gf_boolean_t getting_size;
+ gf_boolean_t getting_xattr;
+ gf_boolean_t unlock_now;
gf_boolean_t release;
gf_boolean_t query;
fd_t *fd;