mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
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:
parent
ea47735802
commit
82f3004a16
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user