From e5b5775b81500fb8d0c7491186e6ba35502134c3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 8 Oct 2013 15:30:16 +0200 Subject: [PATCH] s3:ctdbd_conn: add ctdb_serverids_exist_supported() Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/include/ctdbd_conn.h | 1 + source3/lib/ctdbd_conn.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h index 0f85229e9c4..e250925a755 100644 --- a/source3/include/ctdbd_conn.h +++ b/source3/include/ctdbd_conn.h @@ -49,6 +49,7 @@ bool ctdbd_process_exists(struct ctdbd_connection *conn, uint32_t vnn, bool ctdb_processes_exist(struct ctdbd_connection *conn, const struct server_id *pids, int num_pids, bool *results); +bool ctdb_serverids_exist_supported(struct ctdbd_connection *conn); bool ctdb_serverids_exist(struct ctdbd_connection *conn, const struct server_id *pids, unsigned num_pids, bool *results); diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 4d903248b99..2d2804a7a64 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -1145,6 +1145,15 @@ fail: return false; } +bool ctdb_serverids_exist_supported(struct ctdbd_connection *conn) +{ +#ifndef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL + return false; +#else /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */ + return true; +#endif /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */ +} + #ifdef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL bool ctdb_serverids_exist(struct ctdbd_connection *conn, -- 2.11.4.GIT