summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/src/marker-quota-helper.c
diff options
context:
space:
mode:
authorJunaid <junaid@gluster.com>2011-08-05 10:18:16 +0530
committerAnand Avati <avati@gluster.com>2011-08-05 02:40:39 -0700
commita166a2bfc125c5775ce9ded30f83c60107c3fa8a (patch)
tree6223894082530ebe912944dbe0ffcb4b22d6d2b0 /xlators/features/marker/src/marker-quota-helper.c
parent2504d3e11612ad109da223edf88c252b44ac9689 (diff)
features/marker-quota: Performance improvement.
With this patch new transactions will not be triggered if an updation is already in progress on that inode. Change-Id: I6477444ac69071b73b509ae670c83f301bb19bce BUG: 2988 Reviewed-on: http://review.gluster.com/169 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <raghavendra@gluster.com>
Diffstat (limited to 'xlators/features/marker/src/marker-quota-helper.c')
-rw-r--r--xlators/features/marker/src/marker-quota-helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/marker/src/marker-quota-helper.c b/xlators/features/marker/src/marker-quota-helper.c
index a559da808f8..e1c803626ee 100644
--- a/xlators/features/marker/src/marker-quota-helper.c
+++ b/xlators/features/marker/src/marker-quota-helper.c
@@ -119,6 +119,7 @@ quota_alloc_inode_ctx ()
ctx->size = 0;
ctx->dirty = 0;
+ ctx->updation_status = _gf_false;
LOCK_INIT (&ctx->lock);
INIT_LIST_HEAD (&ctx->contribution_head);
out: