From 09ff6c686ac95a87cd200bd54cc01943981d9928 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Tue, 20 Feb 2018 18:37:56 +0530 Subject: glusterd: compare uuid instead of hostname while finding compatible brick If the above is not done, bricks created with different IP/hostname will not be compatible with brick multiplexing. Change-Id: I508eb59b0632df4b48466cca411c7ec6cc6bd577 BUG: 1547068 Signed-off-by: Atin Mukherjee --- xlators/mgmt/glusterd/src/glusterd-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 19faa0a55ac..6c40907e7f7 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -5675,7 +5675,7 @@ find_compat_brick_in_vol (glusterd_conf_t *conf, if (other_brick == brickinfo) { continue; } - if (strcmp (brickinfo->hostname, other_brick->hostname) != 0) { + if (gf_uuid_compare (brickinfo->uuid, other_brick->uuid)) { continue; } if (other_brick->status != GF_BRICK_STARTED && -- cgit