diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages_local.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |