]> git.sur5r.net Git - openldap/commitdiff
Wait for read locks in read txns
authorHoward Chu <hyc@openldap.org>
Thu, 25 Sep 2008 13:17:17 +0000 (13:17 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 25 Sep 2008 13:17:17 +0000 (13:17 +0000)
servers/slapd/back-bdb/cache.c

index 438ae9587d426b3a6787811611c0fb5b84360a81..9c7d4f8949433c6067be404511e55c7fdc850d20 100644 (file)
@@ -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) {