diff options
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-server-quorum.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c index 37dec3d2d6b..468191cd27f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c +++ b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c @@ -99,17 +99,19 @@ glusterd_validate_quorum (xlator_t *this, glusterd_op_t op, goto out; } - if (does_gd_meet_server_quorum (this)) { + if (!glusterd_is_volume_in_server_quorum (volinfo)) { ret = 0; goto out; } - if (glusterd_is_volume_in_server_quorum (volinfo)) { - ret = -1; - *op_errstr = gf_strdup (errstr); + if (does_gd_meet_server_quorum (this)) { + ret = 0; goto out; } - ret = 0; + + ret = -1; + *op_errstr = gf_strdup (errstr); + out: return ret; } |