summaryrefslogtreecommitdiffstats
path: root/booster/src
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-05-19 17:56:54 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-19 21:08:40 +0530
commit87b938d02b51a0b4c864fc5deba1a1f177a05a4c (patch)
tree134c6b9a105704598eaa366e020119b441749400 /booster/src
parent9189418db9e50fa20c31ac5c7c5b6aaa16a9fa1e (diff)
booster: Dont de-init fd tables on VMP-init failure
In case the init procedure for VMP fails, we want to continue using booster through the old approach, which means leaving the fd-table intact. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'booster/src')
-rw-r--r--booster/src/booster.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c
index 9e5300ee4..8a78fb3be 100644
--- a/booster/src/booster.c
+++ b/booster/src/booster.c
@@ -1236,26 +1236,14 @@ booster_init (void)
else
ret = booster_configure (booster_conf_path);
- if (ret == -1)
- goto err;
-
- gf_log ("booster", GF_LOG_DEBUG, "booster is inited");
+ if (ret == 0)
+ gf_log ("booster", GF_LOG_DEBUG, "booster is inited");
return 0;
err:
- if (booster_glfs_fdtable) {
- gf_fd_fdtable_destroy (booster_glfs_fdtable);
- booster_glfs_fdtable = NULL;
- }
-
- if (booster_mount_table) {
- if (booster_mount_table->mounts) {
- free (booster_mount_table->mounts);
- }
-
- free (booster_mount_table);
- booster_mount_table = NULL;
- }
+ /* Sure we return an error value here
+ * but who cares about booster.
+ */
return -1;
}