summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 96446f0a225..91a4087c4b2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -4991,9 +4991,6 @@ send_attach_req (xlator_t *this, struct rpc_clnt *rpc, char *path, int op)
ret = rpc_clnt_submit (rpc, &gd_brick_prog, op,
my_callback, &iov, 1, NULL, 0, iobref,
frame, NULL, 0, NULL, 0, NULL);
- if (ret) {
- --(conf->blockers);
- }
return ret;
free_iobref:
@@ -5432,13 +5429,12 @@ glusterd_restart_bricks (glusterd_conf_t *conf)
gf_boolean_t node_quorum = _gf_false;
this = THIS;
- GF_VALIDATE_OR_GOTO ("glusterd", this, out);
+ GF_VALIDATE_OR_GOTO ("glusterd", this, return_block);
conf = this->private;
- GF_VALIDATE_OR_GOTO (this->name, conf, out);
+ GF_VALIDATE_OR_GOTO (this->name, conf, return_block);
++(conf->blockers);
-
ret = glusterd_get_quorum_cluster_counts (this, &active_count,
&quorum_count);
if (ret)
@@ -5520,6 +5516,8 @@ glusterd_restart_bricks (glusterd_conf_t *conf)
out:
--(conf->blockers);
conf->restart_done = _gf_true;
+
+return_block:
return ret;
}