summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunaid <junaid@gluster.com>2011-06-28 03:01:12 +0000
committerAnand Avati <avati@gluster.com>2011-06-30 02:59:19 -0700
commit91086a2a7dcbfa30cdb5c188e9268ae4379bd28e (patch)
tree904ad6b6bcf1c9354bcfa58488262a34b1bbde6d
parent41650a8c03ad86bcebe8c595ab9e7f13ec899a4f (diff)
mgmt/glusterd: return 0 when glusterd_op_get_ctx fails on other glusterd's.
Signed-off-by: Junaid <junaid@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3078 (Quota: list comamnd fails) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3078
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 2ef853bfeef..46593b1d9c4 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -5076,7 +5076,7 @@ glusterd_quota_get_limit_usages (glusterd_conf_t *priv,
ctx = glusterd_op_get_ctx (GD_OP_QUOTA);
if (ctx == NULL)
- return -1;
+ return 0;
ret = dict_get_int32 (dict, "count", &count);
if (ret < 0)