]> git.sur5r.net Git - openldap/commitdiff
Add dummy bdb2_back_entry_release_rw() to be completed later
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 13 Apr 1999 06:21:30 +0000 (06:21 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 13 Apr 1999 06:21:30 +0000 (06:21 +0000)
servers/slapd/back-bdb2/Makefile.in
servers/slapd/back-bdb2/add.c
servers/slapd/back-bdb2/entry.c [new file with mode: 0644]
servers/slapd/back-bdb2/init.c
servers/slapd/back-bdb2/proto-back-bdb2.h

index b2ca6b4ad8f3200d76f4e079b5dbc4a6ae6a209f..a0d5e205cf5315b8d3714f40859b133791055b9a 100644 (file)
@@ -1,10 +1,10 @@
 XSRCS = version.c
-SRCS   = idl.c add.c search.c cache.c dbcache.c dn2id.c id2entry.c \
+SRCS   = idl.c add.c search.c cache.c dbcache.c dn2id.c entry.c id2entry.c \
                index.c id2children.c nextid.c abandon.c compare.c group.c \
                modify.c modrdn.c delete.c init.c config.c bind.c attr.c \
                filterindex.c unbind.c kerberos.c close.c alias.c startup.c \
                timing.c porter.c txn.c
-OBJS   = idl.o add.o search.o cache.o dbcache.o dn2id.o id2entry.o \
+OBJS   = idl.o add.o search.o cache.o dbcache.o dn2id.o entry.c id2entry.o \
                index.o id2children.o nextid.o abandon.o compare.o group.o \
                modify.o modrdn.o delete.o init.o config.o bind.o attr.o \
                filterindex.o unbind.o kerberos.o close.o alias.o startup.o \
index 6edf1f636dd52a3f674cd10f4e416dbe3dbc7313..45e65be2328e729297a308ed622637f39b28c712 100644 (file)
@@ -217,8 +217,10 @@ return_results:;
                bdb2i_cache_return_entry_w( &li->li_cache, p ); 
        }
 
-       /* free entry and writer lock */
-       bdb2i_cache_return_entry_w( &li->li_cache, e ); 
+       if ( rc ) {
+               /* free entry and writer lock */
+               bdb2i_cache_return_entry_w( &li->li_cache, e );
+       }
 
        return( rc );
 }
diff --git a/servers/slapd/back-bdb2/entry.c b/servers/slapd/back-bdb2/entry.c
new file mode 100644 (file)
index 0000000..c67f7a6
--- /dev/null
@@ -0,0 +1,23 @@
+/* entry.c - ldbm backend entry_release routine */
+
+#include "portable.h"
+
+#include <stdio.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+
+#include "slap.h"
+#include "back-ldbm.h"
+#include "proto-back-ldbm.h"
+
+
+int
+ldbm_back_entry_release_rw(
+       BackendDB *be,
+       Entry   *e,
+       int     rw
+)
+{
+       return 0;
+}
index d1725f5f594f8a7dea1300ff5114eb91bfac5930..a36b11cab2e603cd8d15ae688b49d6122c6e886b 100644 (file)
@@ -61,6 +61,7 @@ bdb2_back_initialize(
        bi->bi_op_delete = bdb2_back_delete;
        bi->bi_op_abandon = bdb2_back_abandon;
 
+       bi->bi_entry_release_rw = bdb2_back_entry_release_rw;
 #ifdef SLAPD_ACLGROUPS
        bi->bi_acl_group = bdb2_back_group;
 #endif
index 78e853c7d339392110c913d7c6eb520014802aa1..04b787fe8c14be11fc84a48d3b8188bb83e28881 100644 (file)
@@ -74,6 +74,11 @@ Entry * bdb2i_dn2entry_rw LDAP_P(( BackendDB *be, char *dn, char **matched,
 #define bdb2i_dn2entry_r(be, dn, m) bdb2i_dn2entry_rw((be), (dn), (m), 0)
 #define bdb2i_dn2entry_w(be, dn, m) bdb2i_dn2entry_rw((be), (dn), (m), 1)
 
+/*
+ * entry.c
+ */
+int bdb2_back_entry_release_rw LDAP_P(( BackendDB *be, Entry *e, int rw ));
+
 /*
  * filterindex.c
  */