From 2ce4be96bf1c3d08381cbdeb8d57800635702f37 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Wed, 29 Sep 2010 04:48:18 +0000 Subject: mgmt/glusterd: set the error before starting checks Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur 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 --- xlators/mgmt/glusterd/src/glusterd-utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c') 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)) && -- cgit