Fix for a problem with the new messaging system. If a sender is using the
commit8e71b8f83c3077bdcf576e69d033a7ab96097dfa
authorJeremy Allison <jra@samba.org>
Thu, 16 Nov 2000 21:44:49 +0000 (16 21:44 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 16 Nov 2000 21:44:49 +0000 (16 21:44 +0000)
tree49a09c0c603e37e5032918ecd9ad781aa9f82e9e
parent3508577f469ba7e960eef625ef70ce852e11cd28
Fix for a problem with the new messaging system. If a sender is using the
messaging system as a notification mechanism, and the speed of notification
greatly exceeds the speed of message recovery, then you get a massively (>75Mb)
growing tdb. If the message is a simple notification, then the message is
static, and you only need one of them in transit to a target process at
any one time.
This patch adds a BOOL "allow_duplicates" to the message_send_XX primitives.
If set to False, then before sending a message the sender checks the existing
message queue for a target pid for a duplicate of this message, and doesn't
add to it if one already exists.
Jeremy.
source/Makefile.in
source/include/proto.h
source/lib/debug.c
source/lib/messages.c
source/printing/printing.c
source/profile/profile.c
source/rpc_server/srv_spoolss_nt.c
source/utils/msgtest.c
source/utils/smbcontrol.c