From: Howard Chu Date: Thu, 25 Sep 2008 13:17:17 +0000 (+0000) Subject: Wait for read locks in read txns X-Git-Tag: ACLCHECK_0~1316 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fda573347719000e52a12d2115b71b780c7787e6;p=openldap Wait for read locks in read txns --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 438ae9587d..9c7d4f8949 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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) {