]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldbm/entry.c
New dn2id format with base/one/subtree indices (ldbm/bdb2)
[openldap] / servers / slapd / back-ldbm / entry.c
1 /* entry.c - ldbm backend entry_release routine */
2 /*
3  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6
7 #include "portable.h"
8
9 #include <stdio.h>
10
11 #include <ac/socket.h>
12 #include <ac/string.h>
13
14 #include "slap.h"
15 #include "back-ldbm.h"
16 #include "proto-back-ldbm.h"
17
18
19 int
20 ldbm_back_entry_release_rw(
21         Backend *be,
22         Entry   *e,
23         int     rw
24 )
25 {
26         struct ldbminfo *li = (struct ldbminfo *) be->be_private;
27
28         /* free entry and reader or writer lock */
29         cache_return_entry_rw( &li->li_cache, e, rw ); 
30
31         return 0;
32 }