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>
This commit is contained in:
parent
d0e7177416
commit
09ff6c686a
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user