summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/policy/changelog-policy-replication.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/src/policy/changelog-policy-replication.c')
-rw-r--r--xlators/features/changelog/src/policy/changelog-policy-replication.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/changelog/src/policy/changelog-policy-replication.c b/xlators/features/changelog/src/policy/changelog-policy-replication.c
index 536339939..2c54d2cff 100644
--- a/xlators/features/changelog/src/policy/changelog-policy-replication.c
+++ b/xlators/features/changelog/src/policy/changelog-policy-replication.c
@@ -157,7 +157,7 @@ changelog_fix_term(xlator_t *this,
LOCK (&priv->lock);
priv->term = recon_term;
(void) snprintf (crd.crd_changelog_name, PATH_MAX, "%s.%d", JOURNAL_NAME, priv->term);
- crd.crd_prealloc_size = 0;
+ crd.crd_prealloc_size = 1<<29;
if (changelog_open(this, priv, local, &crd) != 0)
return _gf_false;
UNLOCK (&priv->lock);
@@ -1054,7 +1054,7 @@ changelog_replication_cops_open (xlator_t *this,
crd->crd_finale = last;
crd->crd_use_suffix = _gf_false;
- crd->crd_prealloc_size = 1<<10; /* preallocate 1 MB */
+ crd->crd_prealloc_size = 1<<29; /* preallocate 512 MB */
(void) strcpy (crd->crd_changelog_name, name);
@@ -1131,6 +1131,8 @@ changelog_replication_policy_init (xlator_t *this,
/* no record header: extra data (via iobufs) are always persisted */
priv->no_gfid_hdr = _gf_true;
+ priv->lockless_update = _gf_true;
+
memcpy (r_fops, &changelog_default_fops, sizeof (struct xlator_fops));
memcpy (r_cops, &changelog_default_cops, sizeof (struct changelog_ops));