From 525aa23800b73fec618edf7c51b4c4ae81616d49 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 8 Apr 2015 23:18:03 +0100 Subject: [PATCH] ITS#8040 document lazycommit --- doc/man/man5/slapd-config.5 | 6 ++++++ doc/man/man5/slapd.conf.5 | 6 ++++++ servers/slapd/syncrepl.c | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/man/man5/slapd-config.5 b/doc/man/man5/slapd-config.5 index 942fbf977f..b42593d757 100644 --- a/doc/man/man5/slapd-config.5 +++ b/doc/man/man5/slapd-config.5 @@ -1801,6 +1801,7 @@ FALSE, meaning the contextCSN is stored in the context entry. .B [logbase=] .B [logfilter=] .B [syncdata=default|accesslog|changelog] +.B [lazycommit] .RS Specify the current database as a replica which is kept up-to-date with the master content by establishing the current @@ -1980,6 +1981,11 @@ to the obsolete \fIchangelog\fP format. If the .B syncdata parameter is omitted or set to "default" then the log parameters are ignored. + +The .B lazycommit +parameter tells the underlying database that it can store changes without +performing a full flush after each change. This may improve performance +for the consumer, while sacrificing safety or durability. .RE .TP .B olcUpdateDN: diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index 4f037f3165..e99f14f9ce 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -1781,6 +1781,7 @@ the contextCSN is stored in the context entry. .B [logbase=] .B [logfilter=] .B [syncdata=default|accesslog|changelog] +.B [lazycommit] .RS Specify the current database as a replica which is kept up-to-date with the master content by establishing the current @@ -1992,6 +1993,11 @@ to the obsolete \fIchangelog\fP format. If the .B syncdata parameter is omitted or set to "default" then the log parameters are ignored. + +The .B lazycommit +parameter tells the underlying database that it can store changes without +performing a full flush after each change. This may improve performance +for the consumer, while sacrificing safety or durability. .RE .TP .B updatedn diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 17af6ac96e..04e3862847 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -4687,11 +4687,11 @@ config_suffixm( ConfigArgs *c, syncinfo_t *si ) #define LOGFILTERSTR "logfilter" #define SUFFIXMSTR "suffixmassage" #define STRICT_REFRESH "strictrefresh" +#define LAZY_COMMIT "lazycommit" /* FIXME: undocumented */ #define EXATTRSSTR "exattrs" #define MANAGEDSAITSTR "manageDSAit" -#define LAZY_COMMIT "lazycommit" /* mandatory */ enum { -- 2.39.5