summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-01 14:01:28 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-12 09:14:10 +0200
commite21b283d6713794fb0a415a9313943867812884d (patch)
treec8bbf2a910b01bb4ab50a83e824ae71094d3fba3 /source3/nmbd
parent138b58bcec67e4a45cfa28213fc667504755a894 (diff)
downloadsamba-e21b283d6713794fb0a415a9313943867812884d.tar.gz
samba-e21b283d6713794fb0a415a9313943867812884d.tar.bz2
samba-e21b283d6713794fb0a415a9313943867812884d.zip
dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
metze (This used to be commit 64450cc1e441355aa8925b7183e90872eeab20b1)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 0349445317..01fdbbc5a4 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -847,6 +847,8 @@ static bool open_sockets(bool isdaemon, int port)
DEBUG(0,("nmbd version %s started.\n", SAMBA_VERSION_STRING));
DEBUGADD(0,("%s\n", COPYRIGHT_STARTUP_MESSAGE));
+ db_tdb2_setup_messaging(NULL, false);
+
if ( !reload_nmbd_services(False) )
return(-1);
@@ -898,6 +900,10 @@ static bool open_sockets(bool isdaemon, int port)
}
pidfile_create("nmbd");
+
+ /* get broadcast messages */
+ claim_connection(NULL,"",FLAG_MSG_GENERAL|FLAG_MSG_DBWRAP);
+
messaging_register(nmbd_messaging_context(), NULL,
MSG_FORCE_ELECTION, nmbd_message_election);
#if 0
@@ -912,6 +918,8 @@ static bool open_sockets(bool isdaemon, int port)
messaging_register(nmbd_messaging_context(), NULL,
MSG_SEND_PACKET, msg_nmbd_send_packet);
+ db_tdb2_setup_messaging(nmbd_messaging_context(), true);
+
TimeInit();
DEBUG( 3, ( "Opening sockets %d\n", global_nmb_port ) );