diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2012-10-13 12:06:14 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-16 14:23:51 -0700 |
commit | bccb4b7a63eaa5e32b34c90dfdd5efa5c99b546a (patch) | |
tree | 552c716f6e1a2c0c3c7c83e38475d9904d0dbead /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | 22050e51e876c5756e255cd707036cca8b8d544c (diff) |
mgmt/glusterd: avoid directly using conf->uuid
Change-Id: I398c8741b02aa2f34d428c948e93f422e520a9ab
BUG: 862834
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/4084
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 72c9f393d1e..d9f589b20e9 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -3490,7 +3490,7 @@ glusterd_brick_start (glusterd_volinfo_t *volinfo, } } - if (uuid_compare (brickinfo->uuid, conf->uuid)) { + if (uuid_compare (brickinfo->uuid, MY_UUID)) { ret = 0; goto out; } @@ -4298,7 +4298,7 @@ glusterd_brick_stop (glusterd_volinfo_t *volinfo, } } - if (uuid_compare (brickinfo->uuid, conf->uuid)) { + if (uuid_compare (brickinfo->uuid, MY_UUID)) { ret = 0; goto out; } @@ -5180,7 +5180,7 @@ glusterd_brick_statedump (glusterd_volinfo_t *volinfo, } } - if (uuid_compare (brickinfo->uuid, conf->uuid)) { + if (uuid_compare (brickinfo->uuid, MY_UUID)) { ret = 0; goto out; } @@ -5527,7 +5527,7 @@ glusterd_is_local_brick (xlator_t *this, glusterd_volinfo_t *volinfo, goto out; } conf = this->private; - local = !uuid_compare (brickinfo->uuid, conf->uuid); + local = !uuid_compare (brickinfo->uuid, MY_UUID); out: return local; } |