git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a88e43
)
s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing
author
Volker Lendecke
<vl@samba.org>
Thu, 25 Mar 2010 15:44:02 +0000
(16:44 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 25 Mar 2010 15:46:20 +0000
(16:46 +0100)
source3/lib/messages_local.c
patch
|
blob
|
history
diff --git
a/source3/lib/messages_local.c
b/source3/lib/messages_local.c
index b1712823a127ea90c05bc784e93d2f799bd82f41..21910b1e65f3f4662d3b73bfeae239bdd3c9f539 100644
(file)
--- 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,