From 595e0df48bf387a87eb62a76d437a7ea79a0bc8a Mon Sep 17 00:00:00 2001 From: Pranith K Date: Mon, 21 Feb 2011 04:02:24 +0000 Subject: mgmt/glusterd: In store-retrieve exit with error message instead of crashing. Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2066 (glusterd crashed while trying to restore volumes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2066 --- xlators/mgmt/glusterd/src/glusterd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd.c') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 1d6517a4a72..478519b8b7b 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -402,7 +402,7 @@ init (xlator_t *this) glusterd_restart_bricks (conf); ret = 0; out: - if (ret == -1) { + if (ret < 0) { if (this->private != NULL) { GF_FREE (this->private); this->private = NULL; -- cgit