diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2017-11-06 13:23:32 +0530 |
---|---|---|
committer | jiffin tony Thottan <jthottan@redhat.com> | 2017-11-10 08:52:14 +0000 |
commit | ae9d80461a1f95097b7b406d29c020f64c56ffb4 (patch) | |
tree | 0b30541ff36a6b001e64b01de9223b612fb54997 /xlators/mgmt/glusterd/src | |
parent | c8fd28becaa02b248f4bb5c9ea6fdd021579a45f (diff) |
glusterd: restart the brick if qorum status is NOT_APPLICABLE_QUORUM
If a volume is not having server quorum enabled and in a trusted storage
pool all the glusterd instances from other peers are down, on restarting
glusterd the brick start trigger doesn't happen resulting into the
brick not coming up.
> mainline patch : https://review.gluster.org/#/c/18669/
Change-Id: If1458e03b50a113f1653db553bb2350d11577539
BUG: 1511301
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
(cherry picked from commit 635c1c3691a102aa658cf1219fa41ca30dd134ba)
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-server-quorum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c index 3084c1eacb9..995a568caa4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c +++ b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c @@ -341,7 +341,8 @@ glusterd_do_volume_quorum_action (xlator_t *this, glusterd_volinfo_t *volinfo, * the bricks that are down are brought up again. In this process it * also brings up the brick that is purposefully taken down. */ - if (volinfo->quorum_status == quorum_status) + if (quorum_status != NOT_APPLICABLE_QUORUM && + volinfo->quorum_status == quorum_status) goto out; if (quorum_status == MEETS_QUORUM) { |