s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing
authorVolker Lendecke <vl@samba.org>
Thu, 25 Mar 2010 15:44:02 +0000 (16:44 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 25 Mar 2010 15:46:20 +0000 (16:46 +0100)
source3/lib/messages_local.c

index b1712823a127ea90c05bc784e93d2f799bd82f41..21910b1e65f3f4662d3b73bfeae239bdd3c9f539 100644 (file)
@@ -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,