diff options
author | Ravishankar N <ravishankar@redhat.com> | 2015-05-01 08:57:28 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-03 22:07:52 -0700 |
commit | 7e0a74a55ab44da04eed8d63efe9376aac49fab7 (patch) | |
tree | 5b1fa36ebe0d9c9ddb7e0d74983d9653f85b4193 /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | 40407afb529f6e5fa2f79e9778c2f527122d75eb (diff) |
arbiter: load arbiter xlator on every 3rd brick of a replica 3 AFR subvol
Backport of http://review.gluster.org/10257
Logic for adding the 'glusterd_brickinfo->group' member and using it to
find the brick positon has been taken from http://review.gluster.org/#/c/9919.
Thanks to Jeff Darcy for that.
This patch is a part of the arbiter logic implementation for 3 way AFR
details of which can be found at http://review.gluster.org/#/c/9656/
Change-Id: Idbfe4f29ee8e098e0102def8f38b32314316b188
BUG: 1217689
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-on: http://review.gluster.org/10479
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index e4cea90545e..fa4806d2381 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -6019,6 +6019,7 @@ glusterd_recreate_volfiles (glusterd_conf_t *conf) int op_ret = 0; GF_ASSERT (conf); + cds_list_for_each_entry (volinfo, &conf->volumes, vol_list) { ret = generate_brick_volfiles (volinfo); if (ret) { |