diff options
Diffstat (limited to 'xlators/features/changelog/src/changelog.c')
-rw-r--r-- | xlators/features/changelog/src/changelog.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c index 2e01161a9..f152439ab 100644 --- a/xlators/features/changelog/src/changelog.c +++ b/xlators/features/changelog/src/changelog.c @@ -1247,16 +1247,17 @@ init (xlator_t *this) GF_ASSERT (cb_policy[priv->policy].policy == priv->policy); priv->cp = &cb_policy[priv->policy]; - /* ... now bootstrap the logger */ - ret = priv->cb->ctor (this, &priv->cd); - if (ret) - goto out; /* ... init logging policy */ ret = priv->cp->init_policy (this, priv, priv->cp); if (ret) goto out; + /* ... now bootstrap the logger */ + ret = priv->cb->ctor (this, &priv->cd, priv->lockless_update); + if (ret) + goto out; + /* override the value if set */ if (dict_get (this->options, "rollover-time")) { ret = dict_get_int32 (this->options, |