dbwrap_ctdb: Use messaging_ctdbd_connection
authorVolker Lendecke <vl@samba.org>
Fri, 16 Jun 2017 15:11:48 +0000 (17:11 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 25 Jul 2017 15:43:18 +0000 (17:43 +0200)
commit1cc970be020567746d69c8f42ba551acc9ec8078
tree1567220f7e8aa6add4d6b88dab73349321e6c120
parente26fa9980ccb9d14e8920f0224473010da26a3b5
dbwrap_ctdb: Use messaging_ctdbd_connection

With messages_ctdb, the global ctdb connection will change after fork.

Don't store the wrong parent connection across a fork. The alternative would
be to do a reinit on all dbwrap_ctdb databases, but that seems overkill
given that we only have one "standard" ctdb connection anyway.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/ctdb_dummy.c
source3/lib/dbwrap/dbwrap_ctdb.c
source3/lib/dbwrap/dbwrap_ctdb.h
source3/lib/dbwrap/dbwrap_open.c
source3/torture/test_dbwrap_ctdb.c