diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-25 16:44:41 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-25 16:46:21 +0100 |
commit | 0deaff0c11dfec123acf361c599a6b79c2e3bccb (patch) | |
tree | 3ba38fd9649e0a277bdd70510438365c2e3a81d4 /source3 | |
parent | bb1165584f339c8a54710e71764a251323245d8f (diff) | |
download | samba-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')
-rw-r--r-- | source3/lib/serverid.c | 6 |
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, |