mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Add debug if bdb_cache_entry_db_lock fails to get a lock
to assist in diagnosing ITS#1986
This commit is contained in:
parent
7dc1e069e8
commit
5d9479a3e8
@ -149,6 +149,17 @@ bdb_cache_entry_db_lock
|
||||
lockobj.size = e->e_nname.bv_len;
|
||||
rc = LOCK_GET(env, locker, flags | DB_LOCK_NOWAIT,
|
||||
&lockobj, db_rw, lock);
|
||||
if (rc) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( CACHE, DETAIL1,
|
||||
"bdb_cache_entry_db_lock: entry %s, rw %d, rc %d\n",
|
||||
e->e_nname.bv_val, rw, rc );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"bdb_cache_entry_db_lock: entry %s, rw %d, rc %d\n",
|
||||
e->e_nname.bv_val, rw, rc );
|
||||
#endif
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user