mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix? For bdb_cache_find_entry*, COMMITTED entries are usable, not just
READY entries. This change eliminates a retry bottleneck, and looks safe to me, but please review.
This commit is contained in:
parent
fed4c24bea
commit
4c760dfc18
@ -794,7 +794,7 @@ try_again:
|
||||
/*
|
||||
* entry is deleted or not fully created yet
|
||||
*/
|
||||
if ( state != CACHE_ENTRY_READY ) {
|
||||
if ( state != CACHE_ENTRY_READY && state != CACHE_ENTRY_COMMITTED ) {
|
||||
assert(state != CACHE_ENTRY_UNDEFINED);
|
||||
|
||||
/* free cache read lock */
|
||||
@ -889,7 +889,7 @@ try_again:
|
||||
/*
|
||||
* entry is deleted or not fully created yet
|
||||
*/
|
||||
if ( state != CACHE_ENTRY_READY ) {
|
||||
if ( state != CACHE_ENTRY_READY && state != CACHE_ENTRY_COMMITTED ) {
|
||||
|
||||
assert(state != CACHE_ENTRY_UNDEFINED);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user