summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-19 14:51:03 +0200
committerVolker Lendecke <vl@samba.org>2009-05-19 14:54:53 +0200
commit77819597f33d85e67257b73e2e82f2ba123ebf25 (patch)
tree5c254b7774b6f09c9830516a005cedc9aecfd408 /source3/lib
parentf741b90ee8f74077871a0b5d1df55c0dd34a313f (diff)
downloadsamba-77819597f33d85e67257b73e2e82f2ba123ebf25.tar.gz
samba-77819597f33d85e67257b73e2e82f2ba123ebf25.tar.bz2
samba-77819597f33d85e67257b73e2e82f2ba123ebf25.zip
Use TDB_VOLATILE instead of tdb_set_max_dead()
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/messages_local.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c
index be848ac8ba..0da05466a2 100644
--- a/source3/lib/messages_local.c
+++ b/source3/lib/messages_local.c
@@ -102,8 +102,8 @@ NTSTATUS messaging_tdb_init(struct messaging_context *msg_ctx,
ctx->msg_ctx = msg_ctx;
- ctx->tdb = tdb_wrap_open(ctx, lock_path("messages.tdb"),
- 0, TDB_CLEAR_IF_FIRST|TDB_DEFAULT,
+ ctx->tdb = tdb_wrap_open(ctx, lock_path("messages.tdb"), 0,
+ TDB_CLEAR_IF_FIRST|TDB_DEFAULT|TDB_VOLATILE,
O_RDWR|O_CREAT,0600);
if (!ctx->tdb) {
@@ -129,9 +129,6 @@ NTSTATUS messaging_tdb_init(struct messaging_context *msg_ctx,
sec_init();
- /* Activate the per-hashchain freelist */
- tdb_set_max_dead(ctx->tdb->tdb, 5);
-
*presult = result;
return NT_STATUS_OK;
}