From 6392eaf6a33085d91f7be5bfd3cd93b7dc490e6c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 25 Mar 2010 16:45:02 +0100 Subject: s3: Add a comment to notify_internal_parent_init, this is pretty confusing --- source3/smbd/notify_internal.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit