ctdb-client: Add a disconnect callback for ctdb client
authorAmitay Isaacs <amitay@gmail.com>
Wed, 14 Oct 2015 04:36:55 +0000 (15:36 +1100)
committerMartin Schwenke <martins@samba.org>
Wed, 20 Jan 2016 03:19:11 +0000 (04:19 +0100)
commit8ca76adaeaa284601424e2d3ec4cc4bd044ed0de
treeefc635f1af39d9947eee84e35b2a66fe18114526
parent555237f2a8bd42f7223397f73e62a2a3786484c5
ctdb-client: Add a disconnect callback for ctdb client

This allows the client code to optionally clean up and/or re-connect to
CTDB daemon when it the daemon goes away.  If no disconnect callback is
registered and CTDB daemon goes away, then the client will terminate.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/client/client.h
ctdb/client/client_connect.c
ctdb/client/client_private.h