glusterd: disable rpc_clnt_t after relalance process disconnection
Problem: glusterd continues to connect to rebalance process even after the socket connection has disconnected. Solution: rpc_clnt_disable() disables the rpc_clnt_t object and disarms all relevant timers and drops refs to the rpc_clnt_t object and the transport as well. Change-Id: I981d6f1cc0087037f1927062c2770a4d5026a619 BUG: 1484225 Signed-off-by: Milind Changire <mchangir@redhat.com> Reviewed-on: https://review.gluster.org/18114 Reviewed-by: MOHIT AGRAWAL <moagrawa@redhat.com> Tested-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
This commit is contained in:
parent
470fcc2662
commit
a894d44427
@ -145,7 +145,7 @@ __glusterd_defrag_notify (struct rpc_clnt *rpc, void *mydata,
|
||||
|
||||
glusterd_store_perform_node_state_store (volinfo);
|
||||
|
||||
rpc_clnt_reconnect_cleanup (&defrag->rpc->conn);
|
||||
rpc_clnt_disable (defrag->rpc);
|
||||
glusterd_defrag_rpc_put (defrag);
|
||||
if (defrag->cbk_fn)
|
||||
defrag->cbk_fn (volinfo,
|
||||
|
Loading…
x
Reference in New Issue
Block a user