ctdb-protocol: Move CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE to protocol.h
authorMartin Schwenke <martin@meltin.net>
Thu, 10 Nov 2016 05:09:24 +0000 (16:09 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 19 Dec 2016 03:07:07 +0000 (04:07 +0100)
The protocol code needs it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/ctdb_protocol.h
ctdb/protocol/protocol.h

index 2b2fd76b69f68d0beec3bc3545a91cc7c3c713f9..2fb3b6d0dca7c8a45d5f8862c67d6ed4026b1835 100644 (file)
@@ -266,8 +266,6 @@ struct ctdb_control_list_tunable {
 };
 
 
-#define CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE 0x00010000
-
 struct ctdb_public_ip_info_old {
        struct ctdb_public_ip ip;
        uint32_t active_idx;
index f61af3bc4a0d04fcef53cfd742f28691e0204078..c4a7c010de567909a97f217ada8a21c2815fb4e0 100644 (file)
@@ -913,6 +913,8 @@ struct ctdb_req_control {
        uint32_t client_id;
 #define CTDB_CTRL_FLAG_NOREPLY   1
 #define CTDB_CTRL_FLAG_OPCODE_SPECIFIC   0xFFFF0000
+/* Ugly overloading of this field... */
+#define CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE 0x00010000
        uint32_t flags;
        struct ctdb_req_control_data rdata;
 };