From bce6e99400713a4ece37996376d28146aeebc3d4 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Fri, 13 Aug 2010 07:03:47 +0000 Subject: glusterd: Check for DIR before readdir Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1323 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1323 --- xlators/mgmt/glusterd/src/glusterd-store.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index 317f65e7975..84fd42d06cc 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -199,7 +199,7 @@ out: int32_t glusterd_store_remove_bricks (glusterd_volinfo_t *volinfo) { - int32_t ret = -1; + int32_t ret = 0; glusterd_brickinfo_t *tmp = NULL; glusterd_conf_t *priv = NULL; char brickdir [PATH_MAX] = {0,}; @@ -786,7 +786,7 @@ int32_t glusterd_store_retrieve_bricks (glusterd_volinfo_t *volinfo) { - int32_t ret = -1; + int32_t ret = 0; glusterd_brickinfo_t *brickinfo = NULL; glusterd_store_iter_t *iter = NULL; char *key = NULL; -- cgit