mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Don't bother logging lock failures for tryOnly mode
This commit is contained in:
parent
855b1e3a62
commit
856a8c1177
@ -88,7 +88,7 @@ bdb_cache_entry_db_relock(
|
||||
rc = env->lock_vec(env, locker, tryOnly ? DB_LOCK_NOWAIT : 0,
|
||||
list, 2, NULL );
|
||||
|
||||
if (rc) {
|
||||
if (rc && !tryOnly) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( CACHE, DETAIL1,
|
||||
"bdb_cache_entry_db_relock: entry %ld, rw %d, rc %d\n",
|
||||
@ -128,7 +128,7 @@ bdb_cache_entry_db_lock( DB_ENV *env, u_int32_t locker, EntryInfo *ei,
|
||||
|
||||
rc = LOCK_GET(env, locker, tryOnly ? DB_LOCK_NOWAIT : 0,
|
||||
&lockobj, db_rw, lock);
|
||||
if (rc) {
|
||||
if (rc && !tryOnly) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( CACHE, DETAIL1,
|
||||
"bdb_cache_entry_db_lock: entry %ld, rw %d, rc %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user