From 91086a2a7dcbfa30cdb5c188e9268ae4379bd28e Mon Sep 17 00:00:00 2001 From: Junaid Date: Tue, 28 Jun 2011 03:01:12 +0000 Subject: mgmt/glusterd: return 0 when glusterd_op_get_ctx fails on other glusterd's. Signed-off-by: Junaid Signed-off-by: Anand Avati BUG: 3078 (Quota: list comamnd fails) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3078 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 2ef853bfe..46593b1d9 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) -- cgit