diff options
author | Volker Lendecke <vl@samba.org> | 2009-05-19 14:51:03 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-05-19 14:54:53 +0200 |
commit | 77819597f33d85e67257b73e2e82f2ba123ebf25 (patch) | |
tree | 5c254b7774b6f09c9830516a005cedc9aecfd408 | |
parent | f741b90ee8f74077871a0b5d1df55c0dd34a313f (diff) | |
download | samba-77819597f33d85e67257b73e2e82f2ba123ebf25.tar.gz samba-77819597f33d85e67257b73e2e82f2ba123ebf25.tar.bz2 samba-77819597f33d85e67257b73e2e82f2ba123ebf25.zip |
Use TDB_VOLATILE instead of tdb_set_max_dead()
-rw-r--r-- | source3/lib/messages_local.c | 7 |
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; } |