diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2017-11-06 13:23:32 +0530 |
---|---|---|
committer | Samikshan Bairagya <samikshan@gmail.com> | 2017-11-09 05:10:36 +0000 |
commit | 635c1c3691a102aa658cf1219fa41ca30dd134ba (patch) | |
tree | cdc0b46833ab4b4f179e50d95535f64a012dd423 /xlators | |
parent | 7403bddb58fc0db369d47671b8d4ca4cf221b4bc (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.
Change-Id: If1458e03b50a113f1653db553bb2350d11577539
BUG: 1509845
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators')
-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 cc8fa963b50..e9eea850eaa 100644 --- a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c +++ b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c @@ -343,7 +343,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) { |