From 0225d7bc712609232d592d48116ec771cd97c2cf Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 15 Jan 2014 22:26:27 +0530 Subject: 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 --- xlators/features/changelog/src/changelog.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'xlators/features/changelog/src/changelog.c') 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, -- cgit