mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
Wait for read locks in read txns
This commit is contained in:
parent
a49d43ca27
commit
fda5733477
@ -1481,7 +1481,7 @@ bdb_reader_get( Operation *op, DB_ENV *env, DB_TXN **txn )
|
||||
|
||||
if ( ldap_pvt_thread_pool_getkey( ctx, env, &data, NULL ) ) {
|
||||
for ( i=0, rc=1; rc != 0 && i<4; i++ ) {
|
||||
rc = TXN_BEGIN( env, NULL, txn, DB_READ_COMMITTED | DB_TXN_NOWAIT );
|
||||
rc = TXN_BEGIN( env, NULL, txn, DB_READ_COMMITTED );
|
||||
if (rc) ldap_pvt_thread_yield();
|
||||
}
|
||||
if ( rc != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user