summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-07-28 05:03:43 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-28 04:17:28 -0700
commitb8692a3c3cc8e0dab404664e0aeb6ebaea6ab6e5 (patch)
tree0d70da21f3673c60a3431ca19e7c30f8fea0ed25 /xlators
parent550cdfbcf2a5300c926f87403e12f19424bffeac (diff)
glusterd: Fix a crash when get volume fails
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1239 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1239
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd3_1-mops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
index 1a2cb7449c6..2ac20470088 100644
--- a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
+++ b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
@@ -1180,7 +1180,7 @@ glusterd_handle_rpc_msg (rpcsvc_request_t *req)
glusterd_op_sm ();
out:
- if (ret) {
+ if (ret && is_cli_req) {
glusterd_op_send_cli_response (req->procnum, ret, 0, req);
}
gf_log ("", GF_LOG_NORMAL, "Returning %d", ret);