summaryrefslogtreecommitdiffstats
path: root/xlators/performance/decompounder
diff options
context:
space:
mode:
authorVarsha Rao <varao@redhat.com>2018-03-16 14:23:25 +0530
committerAmar Tumballi <amarts@redhat.com>2018-04-11 10:53:48 +0000
commit909e2cdf06fbd7b4161fff402fc6ef7b5e189c21 (patch)
treeb2190d23646807254b149be54448f136dbd4e143 /xlators/performance/decompounder
parent0002c36666c9b043a330ee08533a87fe7fd16491 (diff)
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 <varao@redhat.com>
Diffstat (limited to 'xlators/performance/decompounder')
-rw-r--r--xlators/performance/decompounder/src/decompounder.c6
1 files changed, 2 insertions, 4 deletions
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;
}