lib: Add messaging_send_all
authorVolker Lendecke <vl@samba.org>
Sun, 5 Nov 2017 11:44:01 +0000 (12:44 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 4 Dec 2017 23:56:13 +0000 (00:56 +0100)
commit77cccbc6f4240926d448dd2e2a76d91ccc783729
tree1cbb1c167cbc00df6c0c63ba2d093d597ca378cf
parent2fdde4a07a4e7f28cd9cbd0ac9a0bae3fa748522
lib: Add messaging_send_all

This will replace message_send_all. With messaging_dgm_forall we have
a local broadcast mechanism, and ctdb can also broadcast
everywhere. So there's no need for a separate traverse/send mechanism.

There's no good error reporting mechanism for broadcasting, so make
this function void.

This drops the message_type filtering. I believe that this does not matter in
practice, since messaging is a lot cheaper with dgm instead of the old tdb
based messaging. If someone presents a use case where this matters, nowadays
I'd much rather extend the messaging_dgm lock file format (where the unique id
lives right now) with the filter bits.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/messages.h
source3/lib/messages.c