mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue