From bb1165584f339c8a54710e71764a251323245d8f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 25 Mar 2010 16:44:02 +0100 Subject: s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing --- source3/lib/messages_local.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index b1712823a1..21910b1e65 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -137,6 +137,12 @@ bool messaging_tdb_parent_init(void) { struct tdb_wrap *db; + /* + * Open the tdb in the parent process (smbd) so that our + * CLEAR_IF_FIRST optimization in tdb_reopen_all can properly + * work. + */ + db = tdb_wrap_open(talloc_autofree_context(), lock_path("messages.tdb"), 0, TDB_CLEAR_IF_FIRST|TDB_DEFAULT|TDB_VOLATILE, -- cgit