From 223fb118409e24744e7d796296f0dc488177dd51 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 6 Dec 2001 12:28:49 +0000 Subject: [PATCH] Fix so previous change to slapcat works. --- servers/slapd/back-ldbm/entry.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldbm/entry.c b/servers/slapd/back-ldbm/entry.c index 08d6242136..16227caa2e 100644 --- a/servers/slapd/back-ldbm/entry.c +++ b/servers/slapd/back-ldbm/entry.c @@ -28,8 +28,13 @@ ldbm_back_entry_release_rw( { struct ldbminfo *li = (struct ldbminfo *) be->be_private; - /* free entry and reader or writer lock */ - cache_return_entry_rw( &li->li_cache, e, rw ); + if ( slapMode == SLAP_SERVER_MODE ) { + /* free entry and reader or writer lock */ + cache_return_entry_rw( &li->li_cache, e, rw ); + } else { + + entry_free( e ); + } return 0; } -- 2.39.5