diff options
author | Jeff Darcy <jdarcy@redhat.com> | 2017-03-07 11:53:04 -0500 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2017-03-08 07:14:43 -0500 |
commit | eb038c19e2c799e35e72eeb500dfb81efc5567e2 (patch) | |
tree | cf56128d32af608c248027e4203a2381b06537be /glusterfsd | |
parent | 6ffce4d698a2c9d61820aa31148671b0653fd4c6 (diff) |
glusterfsd: don't quit (in client) on connection failure
Change-Id: I32be91e9db361a45454d6340a4c4ac2d0d7efffc
BUG: 1430042
Signed-off-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-on: https://review.gluster.org/16866
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: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 3f06893fafa..c3b9a6d8cc2 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -2126,8 +2126,9 @@ mgmt_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event, } server = ctx->cmd_args.curr_server; if (server->list.next == &ctx->cmd_args.volfile_servers) { - //if (!ctx->active) + if (!ctx->active) { need_term = 1; + } emval = ENOTCONN; GF_LOG_OCCASIONALLY (log_ctr2, "glusterfsd-mgmt", GF_LOG_INFO, @@ -2144,8 +2145,9 @@ mgmt_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event, gf_log ("glusterfsd-mgmt", GF_LOG_ERROR, "failed to set remote-host: %s", server->volfile_server); - //if (!ctx->active) + if (!ctx->active) { need_term = 1; + } emval = ENOTCONN; break; } |