Prevent ldbm_sync from being called by ldbm_cache_close when the new

dbsync configuration is in use, which was preventing the performance
gains of this mode.
This commit is contained in:
Randy Kunkee 2001-07-16 23:21:36 +00:00
parent ea47735802
commit 82f3004a16
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,9 @@ 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", 0, 0, 0);

View File

@ -46,7 +46,7 @@ ldbm_cache_open(
flags |= LDBM_NOLOCKING;
}
if( li->li_dbwritesync && li->li_dbsyncfreq == 0) {
if( li->li_dbwritesync ) {
flags |= LDBM_SYNC;
} else {
flags |= LDBM_NOSYNC;