The branch, master has been updated via 6392eaf... s3: Add a comment to notify_internal_parent_init, this is pretty confusing via 0deaff0... s3: Add a comment to serverid_parent_init, this is pretty confusing via bb11655... s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing from 5a88e43... s3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdb
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 6392eaf6a33085d91f7be5bfd3cd93b7dc490e6c Author: Volker Lendecke <v...@samba.org> Date: Thu Mar 25 16:45:02 2010 +0100 s3: Add a comment to notify_internal_parent_init, this is pretty confusing commit 0deaff0c11dfec123acf361c599a6b79c2e3bccb Author: Volker Lendecke <v...@samba.org> Date: Thu Mar 25 16:44:41 2010 +0100 s3: Add a comment to serverid_parent_init, this is pretty confusing commit bb1165584f339c8a54710e71764a251323245d8f Author: Volker Lendecke <v...@samba.org> Date: Thu Mar 25 16:44:02 2010 +0100 s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing ----------------------------------------------------------------------- Summary of changes: source3/lib/messages_local.c | 6 ++++++ source3/lib/serverid.c | 6 ++++++ source3/smbd/notify_internal.c | 6 ++++++ 3 files changed, 18 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index b171282..21910b1 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, diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index 5401eed..5f97bd3 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, diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 0e38da6..bdd4f50 100644 --- 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); -- Samba Shared Repository