summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-helpers.h
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2014-01-15 22:26:27 +0530
committerJeff Darcy <jdarcy@redhat.com>2014-01-16 21:21:48 +0000
commit0225d7bc712609232d592d48116ec771cd97c2cf (patch)
treec1b54e95144fd3cedd602be6eabc2a994eb3fb35 /xlators/features/changelog/src/changelog-helpers.h
parentf94191b3ff1382b04591ce767abd437040d395b8 (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-helpers.h')
-rw-r--r--xlators/features/changelog/src/changelog-helpers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.h b/xlators/features/changelog/src/changelog-helpers.h
index 656fb7ffa..2412d810e 100644
--- a/xlators/features/changelog/src/changelog-helpers.h
+++ b/xlators/features/changelog/src/changelog-helpers.h
@@ -122,7 +122,7 @@ typedef struct changelog_dispatcher {
struct changelog_bootstrap {
changelog_mode_t mode;
- int (*ctor) (xlator_t *, changelog_dispatcher_t *);
+ int (*ctor) (xlator_t *, changelog_dispatcher_t *, gf_boolean_t);
int (*dtor) (xlator_t *, changelog_dispatcher_t *);
};
@@ -268,6 +268,8 @@ struct changelog_priv {
*/
gf_boolean_t no_gfid_hdr;
+ gf_boolean_t lockless_update;
+
/* to generate unique socket file per brick */
char *changelog_brick;