summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-25 16:45:02 +0100
committerVolker Lendecke <vl@samba.org>2010-03-25 16:46:23 +0100
commit6392eaf6a33085d91f7be5bfd3cd93b7dc490e6c (patch)
treee374f8167ebaa5acdb1cb06664101763664af6c4 /source3
parent0deaff0c11dfec123acf361c599a6b79c2e3bccb (diff)
downloadsamba-6392eaf6a33085d91f7be5bfd3cd93b7dc490e6c.tar.gz
samba-6392eaf6a33085d91f7be5bfd3cd93b7dc490e6c.tar.bz2
samba-6392eaf6a33085d91f7be5bfd3cd93b7dc490e6c.zip
s3: Add a comment to notify_internal_parent_init, this is pretty confusing
Diffstat (limited to 'source3')
-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);