summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-25 16:44:41 +0100
committerVolker Lendecke <vl@samba.org>2010-03-25 16:46:21 +0100
commit0deaff0c11dfec123acf361c599a6b79c2e3bccb (patch)
tree3ba38fd9649e0a277bdd70510438365c2e3a81d4 /source3/lib
parentbb1165584f339c8a54710e71764a251323245d8f (diff)
downloadsamba-0deaff0c11dfec123acf361c599a6b79c2e3bccb.tar.gz
samba-0deaff0c11dfec123acf361c599a6b79c2e3bccb.tar.bz2
samba-0deaff0c11dfec123acf361c599a6b79c2e3bccb.zip
s3: Add a comment to serverid_parent_init, this is pretty confusing
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/serverid.c6
1 files changed, 6 insertions, 0 deletions
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,