summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-09-29 04:48:18 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-29 06:17:57 -0700
commit2ce4be96bf1c3d08381cbdeb8d57800635702f37 (patch)
tree2503846230d4311e559e22a274d6427659e98c74
parent6689104ce7eed29c7878c124fa13caecaa1245ef (diff)
mgmt/glusterd: set the error before starting checks
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
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 66e11fa7b30..cfa782e026b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -683,6 +683,7 @@ glusterd_brickinfo_get (char *brick, glusterd_volinfo_t *volinfo,
ret = glusterd_hostname_to_uuid (hostname, uuid);
if (ret)
goto out;
+ ret = -1;
list_for_each_entry (tmp, &volinfo->bricks, brick_list) {
if ((!uuid_compare (uuid, tmp->uuid)) &&