summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-04-12 09:00:02 +0000
committerAnand Avati <avati@gluster.com>2011-04-13 00:38:59 -0700
commitfb3e469e29578393a0d5f964991d26b5449bffb0 (patch)
treea8bf27f38451aedab425180ca1d41000814435a2 /xlators
parentbdb3e709e3eec1863181339bf1a5b66b702ac1bb (diff)
features/quota: update quota-limit stored in directory contexts after reconfigure.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2604 (Quota: crossing the set limit) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/quota/src/quota.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 6f28c8981c2..b68689ed91a 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -618,6 +618,10 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
}
+ if (local->limit != ctx->limit) {
+ ctx->limit = local->limit;
+ }
+
ctx->buf = *buf;
if (!(IA_ISREG (buf->ia_type) || IA_ISLNK (buf->ia_type))) {