diff options
author | Venky Shankar <vshankar@redhat.com> | 2014-01-15 22:26:27 +0530 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2014-01-16 21:21:48 +0000 |
commit | 0225d7bc712609232d592d48116ec771cd97c2cf (patch) | |
tree | c1b54e95144fd3cedd602be6eabc2a994eb3fb35 /xlators/features/changelog/src/changelog.c | |
parent | f94191b3ff1382b04591ce767abd437040d395b8 (diff) |
features/changelog: couple of performance improvements
Changes being:
* Changes journal preallocation size to 512 MB
* Lock-less updation of journal
Change-Id: I7c2b7ee224b3d338e4fdd35cc078ea2a13251292
Signed-off-by: Venky Shankar <vshankar@redhat.com>
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, |