s3:ctdbd_conn: add ctdb_serverids_exist_supported()
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Oct 2013 13:30:16 +0000 (15:30 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 24 Mar 2014 16:09:10 +0000 (17:09 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/include/ctdbd_conn.h
source3/lib/ctdbd_conn.c

index 0f85229e9c44bbf721112c740e5c452a725bee75..e250925a755c40cbd1c96052e47d81551648e369 100644 (file)
@@ -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);
index 4d903248b99c4e60a8b0467223d58a58d56013a8..2d2804a7a6466c90f5efe31b3e1cb36e49a8518e 100644 (file)
@@ -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,