From: Howard Chu Date: Thu, 6 Dec 2001 12:28:49 +0000 (+0000) Subject: Fix so previous change to slapcat works. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~743 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=223fb118409e24744e7d796296f0dc488177dd51;p=openldap Fix so previous change to slapcat works. --- 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; }