Fix for a problem with the new messaging system. If a sender is using the
authorJeremy Allison <jra@samba.org>
Thu, 16 Nov 2000 21:38:24 +0000 (21:38 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 16 Nov 2000 21:38:24 +0000 (21:38 +0000)
commitcdac09614ef426092ed1b1de480fe90c3c4cdd83
treee8f51d419cdc238fe9d7c181c1ffe1ee60881265
parentfb71f4a0affd90102cc7866dfd081c01bf056410
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.
Also added code into msgtest.c to test this.
Jeremy.
(This used to be commit 3aa7995660395ecb85c8e35b638fa9fbbb952558)
source3/Makefile.in
source3/include/proto.h
source3/lib/debug.c
source3/lib/messages.c
source3/printing/printing.c
source3/profile/profile.c
source3/rpc_server/srv_spoolss_nt.c
source3/utils/msgtest.c
source3/utils/smbcontrol.c