summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-08-30 15:10:56 +1000
committerKarolin Seeger <kseeger@samba.org>2017-10-25 08:43:03 +0200
commitef9db44d0e81b22ac42aa55dc96c11abe7496e57 (patch)
treecb39138e6fbabcced68483f1f09c18ce1565f26c /ctdb
parent29fae093010fbf000043b750666fb8ccfa2f4efc (diff)
downloadsamba-ef9db44d0e81b22ac42aa55dc96c11abe7496e57.tar.gz
ctdb-protocol: Add new control CTDB_CONTROL_CHECK_PID_SRVID
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13042 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> (cherry picked from commit e5b133a127ff2a34689e679397bdd211fa2aada6)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/protocol/protocol.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h
index ee409f7ec55..e116b3a98b8 100644
--- a/ctdb/protocol/protocol.h
+++ b/ctdb/protocol/protocol.h
@@ -369,6 +369,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS = 0,
CTDB_CONTROL_DB_PUSH_CONFIRM = 148,
CTDB_CONTROL_DB_OPEN_FLAGS = 149,
CTDB_CONTROL_DB_ATTACH_REPLICATED = 150,
+ CTDB_CONTROL_CHECK_PID_SRVID = 151,
};
#define CTDB_MONITORING_ENABLED 0
@@ -842,6 +843,11 @@ enum ctdb_runstate {
CTDB_RUNSTATE_SHUTDOWN,
};
+struct ctdb_pid_srvid {
+ pid_t pid;
+ uint64_t srvid;
+};
+
struct ctdb_req_control_data {
uint32_t opcode;
union {
@@ -879,6 +885,7 @@ struct ctdb_req_control_data {
struct ctdb_uint64_array *u64_array;
struct ctdb_traverse_start_ext *traverse_start_ext;
struct ctdb_traverse_all_ext *traverse_all_ext;
+ struct ctdb_pid_srvid *pid_srvid;
} data;
};