summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-10-06 02:04:01 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-06 00:49:50 -0700
commit4880761284daf6da623322e1d3f7152486c5770f (patch)
tree938c57a8f6ce267dd1bb25cd1608bc40de6665ae /xlators
parent05727129fd08e237d2b4f5daf4726438ebc6efb6 (diff)
mgmt/glusterd: set the return value in case of failure
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1823 (add-brick fails first time but works in next attempt) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1823
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 0b3507da29d..01c29ddb28c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -688,6 +688,8 @@ glusterd_volume_brickinfo_get (uuid_t uuid, char *hostname, char *path,
if (brickinfo)
*brickinfo = brickiter;
break;
+ } else {
+ ret = -1;
}
}