1999-04-13 14:21:30 +08:00
|
|
|
/* entry.c - ldbm backend entry_release routine */
|
|
|
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include <ac/socket.h>
|
|
|
|
#include <ac/string.h>
|
|
|
|
|
|
|
|
#include "slap.h"
|
1999-04-14 03:59:03 +08:00
|
|
|
#include "back-bdb2.h"
|
|
|
|
#include "proto-back-bdb2.h"
|
1999-04-13 14:21:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
int
|
1999-04-14 03:59:03 +08:00
|
|
|
bdb2_back_entry_release_rw(
|
1999-04-13 14:21:30 +08:00
|
|
|
BackendDB *be,
|
|
|
|
Entry *e,
|
|
|
|
int rw
|
|
|
|
)
|
|
|
|
{
|
1999-04-14 04:04:32 +08:00
|
|
|
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 );
|
1999-04-19 18:47:03 +08:00
|
|
|
bdb2i_release_add_lock();
|
1999-04-14 04:04:32 +08:00
|
|
|
|
1999-04-13 14:21:30 +08:00
|
|
|
return 0;
|
|
|
|
}
|