]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/config.c
include portable.h
[openldap] / servers / slapd / back-ldbm / config.c
index d6aca2c413fcd20213bd8f75e8d04b630ee5868f..5cbfd6e924413c85c11f5013b3bef518130e1c6c 100644 (file)
@@ -1,5 +1,7 @@
 /* config.c - ldbm backend configuration file routine */
 
+#include "portable.h"
+
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
@@ -77,6 +79,10 @@ ldbm_back_config(
                }
                li->li_dbcachesize = atoi( argv[1] );
 
+       /* flush on writes */
+       } else if ( strcasecmp( argv[0], "flushwrites" ) == 0 ) {
+               li->li_flush_wrt = 1;
+
        /* anything else */
        } else {
                fprintf( stderr,