git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0deaff0
)
s3: Add a comment to notify_internal_parent_init, this is pretty confusing
author
Volker Lendecke
<vl@samba.org>
Thu, 25 Mar 2010 15:45:02 +0000
(16:45 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 25 Mar 2010 15:46:23 +0000
(16:46 +0100)
source3/smbd/notify_internal.c
patch
|
blob
|
history
diff --git
a/source3/smbd/notify_internal.c
b/source3/smbd/notify_internal.c
index 0e38da6a8cd6e58957f431c7e05d637d2088e3aa..bdd4f5059e69b75b1855140da3397a8c43cd4b2d 100644
(file)
--- a/
source3/smbd/notify_internal.c
+++ b/
source3/smbd/notify_internal.c
@@
-136,6
+136,12
@@
bool notify_internal_parent_init(void)
return true;
}
+ /*
+ * Open the tdbs in the parent process (smbd) so that our
+ * CLEAR_IF_FIRST optimization in tdb_reopen_all can properly
+ * work.
+ */
+
db1 = tdb_wrap_open(talloc_autofree_context(), lock_path("notify.tdb"),
0, TDB_SEQNUM|TDB_CLEAR_IF_FIRST,
O_RDWR|O_CREAT, 0644);