summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-08 06:14:23 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-08 07:02:06 -0700
commit5ebe2fdfaea372c139db2f6d8afe32aa113c0f8f (patch)
tree5644207583780b73f50b52f18302cd9542f2f605 /xlators/mgmt/glusterd/src/glusterd3_1-mops.c
parent440ffb55f08beabc7f2ee98f22852ce103613b30 (diff)
mgmt/glusterd: send response in case of friend not found
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1512 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1512
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd3_1-mops.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd3_1-mops.c8
1 files 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 e4525b930..9d9dc385a 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;
}