smbd/winbindd: Do an early check if ctdbd is functional
authorVolker Lendecke <vl@samba.org>
Thu, 31 Jan 2013 10:15:09 +0000 (11:15 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 17 Oct 2013 21:20:45 +0000 (23:20 +0200)
commitfbee5795ab69a35c5440eb5684e4ca807b08b1e3
tree7f02f1e07942399c14bc4084fe645f844c83cb47
parent20d3f308e294c0ec616fa07570d9ba9254163d8f
smbd/winbindd: Do an early check if ctdbd is functional

This will avoid panic calls when smbd and winbind is started in cluster
mode before ctdb is functional. It still logs something sane at debug
level 0, but it does not panic and core anymore.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/include/ctdbd_conn.h
source3/lib/ctdbd_conn.c
source3/smbd/server.c
source3/winbindd/winbindd.c