summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunaid <junaid@gluster.com>2011-04-12 04:37:16 +0000
committerAnand Avati <avati@gluster.com>2011-04-12 21:49:44 -0700
commit214ceccb0758e62724dc2548d140aff5885391a0 (patch)
treeaf4e337662c83518f39a2d80601059db991420fb
parent2a6598646824da9d6a957fb5b3e4c6bb40fb6835 (diff)
mgmt/glusterd: Mount a maintainance client only on the glusterd which received quota enable through cli.
Signed-off-by: Junaid <junaid@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2473 (Support for volume and directory level quota) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2473
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 5ecc5135570..cdf9973aa77 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -4664,10 +4664,10 @@ create_vol:
ret = 0;
out:
- if (start_crawl == _gf_true)
+ ctx = glusterd_op_get_ctx (GD_OP_QUOTA);
+ if (ctx && start_crawl == _gf_true)
glusterd_quota_initiate_fs_crawl (priv, volname);
- ctx = glusterd_op_get_ctx (GD_OP_QUOTA);
if (ctx && *op_errstr) {
ret = dict_set_dynstr (ctx, "errstr", *op_errstr);
if (ret) {