From 856a8c117757162126fababfdc95ffc492e9cd97 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Jul 2004 20:02:24 +0000 Subject: [PATCH] Don't bother logging lock failures for tryOnly mode --- servers/slapd/back-bdb/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 23b35fe397..d306add2a5 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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", -- 2.39.5