openldap/servers/slapd/back-bdb2/entry.c
Kurt Zeilenga 403f4479bc Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
Replace old Id as needed (back-tcl).
Leave updating of contribWare to contributors (for now).
1999-09-08 19:06:24 +00:00

31 lines
508 B
C

/* entry.c - ldbm backend entry_release routine */
/* $OpenLDAP$ */
#include "portable.h"
#include <stdio.h>
#include <ac/socket.h>
#include <ac/string.h>
#include "slap.h"
#include "back-bdb2.h"
#include "proto-back-bdb2.h"
int
bdb2_back_entry_release_rw(
BackendDB *be,
Entry *e,
int rw
)
{
struct ldbminfo *li = (struct ldbminfo *) be->be_private;
/* free entry and reader or writer lock */
bdb2i_cache_return_entry_rw( &li->li_cache, e, rw );
bdb2i_release_add_lock();
return 0;
}