lib: Move ctdbd_init_connection out of ctdbd_traverse()
authorVolker Lendecke <vl@samba.org>
Tue, 5 Apr 2016 15:30:11 +0000 (17:30 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Apr 2016 16:29:20 +0000 (18:29 +0200)
commitff72a8ae82ec2e7760d86bc7ea95837489a93df2
tree6c12a7cc2c03335e1216ceb9567ee16ff595e49a
parent966cef0d41d85d2753d3664a0e555bb444cef2e3
lib: Move ctdbd_init_connection out of ctdbd_traverse()

2 effects: This removes the [un]become_root calls from ctdbd_conn,
and it makes it possible to re-use the traversal connections, should
the setup/teardown become a problem in the future.

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