mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
Add dummy bdb2_back_entry_release_rw() to be completed later
This commit is contained in:
parent
169d6d0200
commit
80e5c43346
5 changed files with 35 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
23
servers/slapd/back-bdb2/entry.c
Normal file
23
servers/slapd/back-bdb2/entry.c
Normal file
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue