From 5ebe2fdfaea372c139db2f6d8afe32aa113c0f8f Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 8 Sep 2010 06:14:23 +0000 Subject: mgmt/glusterd: send response in case of friend not found Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1512 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1512 --- xlators/mgmt/glusterd/src/glusterd3_1-mops.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c index e4525b93081..9d9dc385a1c 100644 --- a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c +++ b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c @@ -270,7 +270,8 @@ inject: ret = glusterd_friend_find (rsp.uuid, rsp.hostname, &peerinfo); if (ret) { - GF_ASSERT (0); + //can happen as part of rpc clnt connection cleanup + //when the frame timeout happens after 30 minutes goto respond; } @@ -292,8 +293,6 @@ inject: glusterd_friend_sm (); glusterd_op_sm (); - if (ctx) - glusterd_destroy_probe_ctx (ctx); op_ret = 0; @@ -306,6 +305,9 @@ respond: glusterd_op_sm (); } + if (ctx) + glusterd_destroy_probe_ctx (ctx); + return ret; } -- cgit