summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-10-08 15:30:44 +0200
committerMichael Adam <obnox@samba.org>2014-03-24 17:09:10 +0100
commit0607b187f3c7f6289c669f7a2aee117171143db5 (patch)
tree3585af69228f0698980e8533a95301a0805b32c3 /source3/lib
parente5b5775b81500fb8d0c7491186e6ba35502134c3 (diff)
downloadsamba-0607b187f3c7f6289c669f7a2aee117171143db5.tar.gz
samba-0607b187f3c7f6289c669f7a2aee117171143db5.tar.xz
samba-0607b187f3c7f6289c669f7a2aee117171143db5.zip
s3:ctdbd_conn: always provide ctdb_serverids_exist()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdbd_conn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 2d2804a7a64..efe4e529b62 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -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