From 909e2cdf06fbd7b4161fff402fc6ef7b5e189c21 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Fri, 16 Mar 2018 14:23:25 +0530 Subject: xlators/performance: Add pass-through option Add pass-through option in performance traslators. Set the option in GF_OPTION_INIT() and GF_OPTION_RECONF() Updates: #304 Change-Id: If1537450147d154905831e36f7162a32866d7ad6 Signed-off-by: Varsha Rao --- xlators/performance/decompounder/src/decompounder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xlators/performance/decompounder/src') diff --git a/xlators/performance/decompounder/src/decompounder.c b/xlators/performance/decompounder/src/decompounder.c index 095a300e9f4..2bc73efdfd3 100644 --- a/xlators/performance/decompounder/src/decompounder.c +++ b/xlators/performance/decompounder/src/decompounder.c @@ -916,29 +916,27 @@ mem_acct_init (xlator_t *this) int32_t init (xlator_t *this) { - int ret = 0; + int ret = -1; if (!this->children) { gf_msg (this->name, GF_LOG_WARNING, 0, DC_MSG_VOL_MISCONFIGURED, "Decompounder must have" " a subvol."); - ret = -1; goto out; } if (!this->parents) { gf_msg (this->name, GF_LOG_WARNING, 0, DC_MSG_VOL_MISCONFIGURED, "Volume is dangling."); - ret = -1; goto out; } this->local_pool = mem_pool_new (dc_local_t, 128); if (!this->local_pool) { - ret = -1; goto out; } + ret = 0; out: return ret; } -- cgit