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 */
}
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;
fail:
cluster_fatal("serverids_exist failed");
return false;
-#endif /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */
}
/*
NTSTATUS status;
uint32_t flags;
-#ifdef HAVE_CTDB_WANT_READONLY_DECL
flags = local_copy ? CTDB_WANT_READONLY : 0;
-#else
- flags = 0;
-#endif
ZERO_STRUCT(req);
* versions at runtime
*/
struct ctdb_control_tcp p4;
-#ifdef HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR
struct ctdb_control_tcp_addr p;
-#endif
TDB_DATA data;
NTSTATUS status;
struct sockaddr_storage client;
data.dptr = (uint8_t *)&p4;
data.dsize = sizeof(p4);
break;
-#ifdef HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR
case AF_INET6:
memcpy(&p.dest.ip6, &server, sizeof(p.dest.ip6));
memcpy(&p.src.ip6, &client, sizeof(p.src.ip6));
data.dptr = (uint8_t *)&p;
data.dsize = sizeof(p);
break;
-#endif
default:
return NT_STATUS_INTERNAL_ERROR;
}