From 8ba46b4c2d6f67887454d1e6756e6dc476d9457d Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sat, 18 Sep 2010 01:30:35 +0000 Subject: mgmt/glusterd: Proceed state machine when cli response fails Signed-off-by: Vijay Bellur Signed-off-by: Vijay Bellur BUG: 1530 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1530 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index ce05c92eae2..1497ae4adae 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, ""))) -- cgit