]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/config.c
Remove abandon cruft
[openldap] / servers / slapd / back-ldbm / config.c
index f574839fd5b5864e7d72e976966b669affb6871a..70f543e4e84000b6dc00e9d176d88b10e2652f91 100644 (file)
@@ -122,7 +122,6 @@ ldbm_back_db_config(
                }
 
                li->li_dbsyncfreq = i;
-               li->li_dbwritesync = 0;
 
                if ( argc > 2 ) {
                        i = atoi( argv[2] );
@@ -146,9 +145,12 @@ ldbm_back_db_config(
                        li ->li_dbsyncwaitinterval = i;
                }
 
+               /* turn off writesync when sync policy is in place */
+               li->li_dbwritesync = 0;
+
 #else
                Debug( LDAP_DEBUG_ANY,
-    "\"dbsync\" policies not supported in non-threaded environments\n");
+    "\"dbsync\" policies not supported in non-threaded environments\n", 0, 0, 0);
                return 1;
 #endif