summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);