diff options
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 4 |
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) { |