summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)) &&