Patchwork [BUG:1734] mgmt/glusterd: set the error before starting checks

login
register
Submitter Pranith K
Date 2010-09-29 10:18:18
Message ID <20100929101818.GA2476@dev.gluster.com>
Download mbox | patch
Permalink /patch/5076/
State Accepted
Headers show

Comments

Pranith K - 2010-09-29 10:18:18
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
---
 xlators/mgmt/glusterd/src/glusterd-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index d1d45a7..0c1804e 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)) &&