From 174f963c846331c6dafda169451790b6039ef3fb Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 13 Sep 2010 08:32:37 +0000 Subject: rpc: in rpc_clnt_destroy(), cleanup the transport too * if we don't cleanup the transport, it will trigger false events on the free'd transport which causes crash Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1423 (Crash in gf_timer_call_cancel) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1423 --- xlators/mgmt/glusterd/src/glusterd-sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.c b/xlators/mgmt/glusterd/src/glusterd-sm.c index 2be2de4d203..9656dba1ee8 100644 --- a/xlators/mgmt/glusterd/src/glusterd-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-sm.c @@ -278,7 +278,7 @@ glusterd_ac_handle_friend_remove_req (glusterd_friend_sm_event_t *event, ret = glusterd_xfer_friend_remove_resp (ev_ctx->req, ev_ctx->hostname, ev_ctx->port); - //rpc_clnt_destroy (peerinfo->rpc); + rpc_clnt_destroy (peerinfo->rpc); peerinfo->rpc = NULL; ret = glusterd_friend_sm_new_event (GD_FRIEND_EVENT_REMOVE_FRIEND, -- cgit