From 0deaff0c11dfec123acf361c599a6b79c2e3bccb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 25 Mar 2010 16:44:41 +0100 Subject: s3: Add a comment to serverid_parent_init, this is pretty confusing --- source3/lib/serverid.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index 5401eed974..5f97bd310f 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -31,6 +31,12 @@ bool serverid_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("serverid.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT, -- cgit