From 87b938d02b51a0b4c864fc5deba1a1f177a05a4c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 19 May 2009 17:56:54 +0530 Subject: 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 --- booster/src/booster.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'booster') 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; } -- cgit