messaging: Optimize self-sends
authorVolker Lendecke <vl@samba.org>
Mon, 25 Jul 2016 14:31:18 +0000 (16:31 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 22:06:22 +0000 (00:06 +0200)
commitcd1ab02530a696071b7d5f43c3e2ab94c6b1713b
tree74f7ff247370d43b1869fbdfa8fb2d2a40b4f0d0
parent1cf8526c6024dcf7f6fb7eba1394de6d05eefd25
messaging: Optimize self-sends

We need to go through the event loop, which messaging_dgm_send does. We can
also use a tevent_immediate for the same purpose. Right now the main user is
messaging_ctdb: Here strace looks a bit weird when we receive a message.

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