glusterd: set conn->reconnect to null on timer cancellation
Change-Id: Ic48e6652f431daeb0db027660f6c9de16d893f08 BUG: 1443896 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: https://review.gluster.org/17088 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
This commit is contained in:
parent
561766e45a
commit
98dc1f08c1
@ -1878,6 +1878,7 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo,
|
||||
pthread_mutex_lock (&conn->lock);
|
||||
if (conn->reconnect) {
|
||||
(void ) gf_timer_call_cancel (rpc->ctx, conn->reconnect);
|
||||
conn->reconnect = NULL;
|
||||
}
|
||||
pthread_mutex_unlock (&conn->lock);
|
||||
rpc_clnt_unref (rpc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user