summaryrefslogtreecommitdiff
path: root/ctdb/protocol/protocol.h
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-03-17 17:16:09 +1100
committerMartin Schwenke <martins@samba.org>2016-03-25 03:26:16 +0100
commitfc63eae80b7b521598560b970a4ce10a0838a3ce (patch)
tree10ae8fb1f6bbe150dd3fc71e6c4bda7b31c9ade5 /ctdb/protocol/protocol.h
parentad7a407a13b87ec13d94a808111d2583bfd1d217 (diff)
downloadsamba-fc63eae80b7b521598560b970a4ce10a0838a3ce.tar.gz
ctdb-protocol: Add srvid for assigning banning credits
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/protocol/protocol.h')
-rw-r--r--ctdb/protocol/protocol.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h
index 28f036eff55..3914c692091 100644
--- a/ctdb/protocol/protocol.h
+++ b/ctdb/protocol/protocol.h
@@ -124,6 +124,9 @@ struct ctdb_call {
/* SRVID prefix used during recovery for pulling and pushing databases */
#define CTDB_SRVID_RECOVERY 0xF001000000000000LL
+/* SRVID to assign of banning credits */
+#define CTDB_SRVID_BANNING 0xF002000000000000LL
+
/* SRVID to inform of election data */
#define CTDB_SRVID_ELECTION 0xF100000000000000LL
@@ -992,7 +995,7 @@ union ctdb_message_data {
uint32_t db_id;
/* SRVID_MEM_DUMP, SRVID_TAKEOVER_RUN */
struct ctdb_srvid_message *msg;
- /* SRVID_REBALANCE_NODE */
+ /* SRVID_BANNING, SRVID_REBALANCE_NODE */
uint32_t pnn;
/* SRVID_DISABLE_TAKEOVER_RUNS, SRVID_DISABLE_RECOVERIES */
struct ctdb_disable_message *disable;