From fda573347719000e52a12d2115b71b780c7787e6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 25 Sep 2008 13:17:17 +0000 Subject: [PATCH] Wait for read locks in read txns --- servers/slapd/back-bdb/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5