From ac3f08ddbe0b484375624db0e35999a8584b57f4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 May 2007 22:17:13 +0000 Subject: 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) --- source3/smbd/lanman.c | 3 +-- source3/smbd/process.c | 2 +- source3/smbd/server.c | 2 +- source3/smbd/statcache.c | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'source3/smbd') 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 } -- cgit