messaging: Add messaging_ctdb_init/destroy
authorVolker Lendecke <vl@samba.org>
Sun, 11 Jun 2017 08:45:25 +0000 (10:45 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 25 Jul 2017 15:43:18 +0000 (17:43 +0200)
commit5afdce0a6a388d7b5bb181ecca41024828025302
tree21a442a589253732e010d23ad0c6a0154da643ec
parent9cb137916c71e392e92b16c9f75141f92ae9a741
messaging: Add messaging_ctdb_init/destroy

This models connecting to ctdb after the dgm code. The main point
is that we should never open more than more ctdb socket for messaging.

With more than one socket, we might end up with our pid registered with
ctdb on more than one socket. This could lead to memory overconsumption
in ctdb. ctdbd will eventually throw away messages, but they will take
up space unnecessarily.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/ctdb_dummy.c
source3/lib/messages_ctdb.c [new file with mode: 0644]
source3/lib/messages_ctdb.h [new file with mode: 0644]
source3/wscript_build