summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-21 22:17:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:17 -0500
commitac3f08ddbe0b484375624db0e35999a8584b57f4 (patch)
tree477347104c60dc6ae205257d654b1d89c7903f35 /source3/smbd
parentf96242d9331a5fcdc65445d0d0ea7177c7ddc6e0 (diff)
downloadsamba-ac3f08ddbe0b484375624db0e35999a8584b57f4.tar.gz
samba-ac3f08ddbe0b484375624db0e35999a8584b57f4.tar.bz2
samba-ac3f08ddbe0b484375624db0e35999a8584b57f4.zip
r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'm
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c3
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/server.c2
-rw-r--r--source3/smbd/statcache.c1
4 files changed, 3 insertions, 5 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index fae6312080..0a9a529a85 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1895,8 +1895,7 @@ static BOOL api_RNetShareAdd(connection_struct *conn,uint16 vuid,
} else {
SAFE_FREE(command);
message_send_all(smbd_messaging_context(),
- MSG_SMB_CONF_UPDATED, NULL, 0,
- False, NULL);
+ MSG_SMB_CONF_UPDATED, NULL, 0, NULL);
}
} else {
return False;
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 02dc507e11..3b922af51f 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -380,7 +380,7 @@ static BOOL receive_message_or_smb(char *buffer, int buffer_len, int timeout)
* messages as we need to synchronously process any messages
* we may have sent to ourselves from the previous SMB.
*/
- message_dispatch();
+ message_dispatch(smbd_messaging_context());
/*
* Check to see if we already have a message on the deferred open queue
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 7a139afa47..6746271c09 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -392,7 +392,7 @@ static BOOL open_sockets_smbd(enum smb_server_mode server_mode, const char *smb_
lp_TALLOC_FREE();
/* Ensure we respond to PING and DEBUG messages from the main smbd. */
- message_dispatch();
+ message_dispatch(smbd_messaging_context());
if (got_sig_cld) {
pid_t pid;
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c
index 1d6646257a..b63dd165a7 100644
--- a/source3/smbd/statcache.c
+++ b/source3/smbd/statcache.c
@@ -296,7 +296,6 @@ void send_stat_cache_delete_message(const char *name)
MSG_SMB_STAT_CACHE_DELETE,
name,
strlen(name)+1,
- True,
NULL);
#endif
}