diff options
author | Pranith K <pranithk@gluster.com> | 2010-09-29 05:08:34 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-29 06:18:09 -0700 |
commit | 723c57faa30e102732aa29c8c4608703081970f3 (patch) | |
tree | 6947a7c1bc823e64e7ce4f8f1708453df57d2da6 /xlators/mgmt/glusterd/src | |
parent | 528dde957c809014aee40737d01cb667e858e0c9 (diff) |
mgmt/glusterd: resolve uuid if null
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1734 (replace brick should accept both ipaddress and hostname for bricks)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1734
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index cfa782e026b..17732293729 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -686,6 +686,11 @@ glusterd_brickinfo_get (char *brick, glusterd_volinfo_t *volinfo, ret = -1; list_for_each_entry (tmp, &volinfo->bricks, brick_list) { + if (uuid_is_null (tmp->uuid)) { + ret = glusterd_resolve_brick (tmp); + if (ret) + goto out; + } if ((!uuid_compare (uuid, tmp->uuid)) && !strcmp (tmp->path, path)) { gf_log ("", GF_LOG_NORMAL, "Found brick"); |