diff options
| author | Pranith K <pranithk@gluster.com> | 2011-02-21 04:02:24 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-22 02:11:47 -0800 | 
| commit | 595e0df48bf387a87eb62a76d437a7ea79a0bc8a (patch) | |
| tree | 990c49a0e82043f53b0c3744b5fa3281c987e92a /xlators/mgmt/glusterd/src/glusterd.c | |
| parent | b00b3d46c226d339a1cfde70ceab101cee2ac865 (diff) | |
mgmt/glusterd: In store-retrieve exit with error message instead of crashing.
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2066 (glusterd crashed while trying to restore volumes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2066
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 2 | 
1 files changed, 1 insertions, 1 deletions
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;  | 
