summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/notify_internal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 0e38da6a8c..bdd4f5059e 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -136,6 +136,12 @@ bool notify_internal_parent_init(void)
return true;
}
+ /*
+ * Open the tdbs in the parent process (smbd) so that our
+ * CLEAR_IF_FIRST optimization in tdb_reopen_all can properly
+ * work.
+ */
+
db1 = tdb_wrap_open(talloc_autofree_context(), lock_path("notify.tdb"),
0, TDB_SEQNUM|TDB_CLEAR_IF_FIRST,
O_RDWR|O_CREAT, 0644);