From f7f6861a26d26bd1a0022bf515bf5011d3d538bf Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 24 Jun 2004 23:35:18 +0000 Subject: [PATCH] ITS#3201 fix conflict with BDB internal locks --- 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 c25a9357e2..8e5dcf995f 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -75,7 +75,7 @@ bdb_cache_entry_db_relock( if ( !lock ) return 0; lockobj.data = &ei->bei_id; - lockobj.size = sizeof(ei->bei_id); + lockobj.size = sizeof(ei->bei_id) + 1; list[0].op = DB_LOCK_PUT; list[0].lock = *lock; @@ -122,7 +122,7 @@ bdb_cache_entry_db_lock( DB_ENV *env, u_int32_t locker, EntryInfo *ei, db_rw = DB_LOCK_READ; lockobj.data = &ei->bei_id; - lockobj.size = sizeof(ei->bei_id); + lockobj.size = sizeof(ei->bei_id) + 1; rc = LOCK_GET(env, locker, tryOnly ? DB_LOCK_NOWAIT : 0, &lockobj, db_rw, lock); -- 2.39.5