]> git.sur5r.net Git - openldap/commitdiff
Wait for read locks in read txns
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 30 Sep 2008 22:09:20 +0000 (22:09 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 30 Sep 2008 22:09:20 +0000 (22:09 +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) {