]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/config.c
error message from be_entry_put tool backend function
[openldap] / servers / slapd / back-ldbm / config.c
index f574839fd5b5864e7d72e976966b669affb6871a..c9a9b2571e7c38fd451d284c904f49900f06f25a 100644 (file)
@@ -1,7 +1,7 @@
 /* config.c - ldbm backend configuration file routine */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT 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