diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-25 16:44:02 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-25 16:46:20 +0100 |
commit | bb1165584f339c8a54710e71764a251323245d8f (patch) | |
tree | 9eeb419a1ccf82ed0f0b83bf24c25f04c55dd580 /source3/lib | |
parent | 5a88e43c693f9e0c5dd93e4fd238364262643b5a (diff) | |
download | samba-bb1165584f339c8a54710e71764a251323245d8f.tar.gz samba-bb1165584f339c8a54710e71764a251323245d8f.tar.bz2 samba-bb1165584f339c8a54710e71764a251323245d8f.zip |
s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages_local.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index b1712823a1..21910b1e65 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -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, |