summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-09-18 01:30:35 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-18 00:51:30 -0700
commit8ba46b4c2d6f67887454d1e6756e6dc476d9457d (patch)
tree7a2990fe261907a8ca53be71a27ae0e747198427
parentd111e0fa0b9769b8ffb8df97a976ba74efae576d (diff)
mgmt/glusterd: Proceed state machine when cli response fails
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1530 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1530
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index ce05c92ea..1497ae4ad 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -3304,6 +3304,14 @@ out:
pthread_mutex_unlock (&opinfo.lock);
ret = glusterd_op_send_cli_response (cli_op, op_ret,
op_errno, req, ctx, op_errstr);
+
+ if (ret) {
+ gf_log ("", GF_LOG_ERROR, "Responding to cli failed, ret: %d",
+ ret);
+ //Ignore this error, else state machine blocks
+ ret = 0;
+ }
+
if (ctx_free && ctx && (op != -1))
glusterd_op_free_ctx (op, ctx, ctx_free);
if (op_errstr && (strcmp (op_errstr, "")))