1 /* entry.c - ldbm backend entry_release routine */
4 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 #include <ac/socket.h>
13 #include <ac/string.h>
16 #include "back-ldbm.h"
17 #include "proto-back-ldbm.h"
21 ldbm_back_entry_release_rw(
29 struct ldbminfo *li = (struct ldbminfo *) be->be_private;
31 if ( slapMode == SLAP_SERVER_MODE ) {
32 /* free entry and reader or writer lock */
33 cache_return_entry_rw( &li->li_cache, e, rw );
35 ldap_pvt_thread_rdwr_wunlock( &li->li_giant_rwlock );
37 ldap_pvt_thread_rdwr_runlock( &li->li_giant_rwlock );