From: Volker Lendecke Date: Tue, 19 May 2009 12:51:03 +0000 (+0200) Subject: Use TDB_VOLATILE instead of tdb_set_max_dead() X-Git-Tag: tdb-1.1.5~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77819597f33d85e67257b73e2e82f2ba123ebf25;p=thirdparty%2Fsamba.git Use TDB_VOLATILE instead of tdb_set_max_dead() --- diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index be848ac8bac..0da05466a2f 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; }