]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/config.c
Don't clobber dn.
[openldap] / servers / slapd / back-ldbm / config.c
index 5cbfd6e924413c85c11f5013b3bef518130e1c6c..99a7c7794ef0da8fc96e3bbb56d144ab1c7057b1 100644 (file)
@@ -3,12 +3,14 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+
 #include "slap.h"
 #include "back-ldbm.h"
 
+void
 ldbm_back_config(
     Backend    *be,
     char       *fname,
@@ -33,7 +35,7 @@ ldbm_back_config(
                            fname, lineno );
                        exit( 1 );
                }
-               li->li_directory = strdup( argv[1] );
+               li->li_directory = ch_strdup( argv[1] );
 
        /* mode with which to create new database files */
        } else if ( strcasecmp( argv[0], "mode" ) == 0 ) {
@@ -79,9 +81,9 @@ ldbm_back_config(
                }
                li->li_dbcachesize = atoi( argv[1] );
 
-       /* flush on writes */
-       } else if ( strcasecmp( argv[0], "flushwrites" ) == 0 ) {
-               li->li_flush_wrt = 1;
+       /* no write sync */
+       } else if ( strcasecmp( argv[0], "dbcachenowsync" ) == 0 ) {
+               li->li_dbcachewsync = 0;
 
        /* anything else */
        } else {