s3:ctdbd_conn: always provide ctdb_serverids_exist()
[kai/samba-autobuild/.git] / source3 / lib / ctdbd_conn.c
index 2d2804a7a6466c90f5efe31b3e1cb36e49a8518e..efe4e529b626b8c4ceffa1fe58a94c591b72676d 100644 (file)
@@ -1154,12 +1154,13 @@ bool ctdb_serverids_exist_supported(struct ctdbd_connection *conn)
 #endif /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */
 }
 
-#ifdef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL
-
 bool ctdb_serverids_exist(struct ctdbd_connection *conn,
                          const struct server_id *pids, unsigned num_pids,
                          bool *results)
 {
+#ifndef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL
+       return false;
+#else /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */
        unsigned i, num_received;
        NTSTATUS status;
        struct ctdb_vnn_list *vnns = NULL;
@@ -1305,9 +1306,8 @@ bool ctdb_serverids_exist(struct ctdbd_connection *conn,
 fail:
        TALLOC_FREE(vnns);
        return result;
-}
-
 #endif /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */
+}
 
 /*
  * Get a db path