diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2018-02-20 18:37:56 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-02-21 22:03:14 +0000 |
commit | 09ff6c686ac95a87cd200bd54cc01943981d9928 (patch) | |
tree | f01a42fb54a995709e8b49c5edeeaee8314b9f8c | |
parent | d0e7177416be3005b3f092addf0bba4dd9dc7a2d (diff) |
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 <amukherj@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 && |