]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-protocol: Add new control CTDB_CONTROL_ECHO_DATA
authorVolker Lendecke <vl@samba.org>
Tue, 7 Apr 2020 13:17:42 +0000 (15:17 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 28 Apr 2020 09:08:39 +0000 (09:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/protocol/protocol.h

index 04a651018be823858a03a721615dbfa372653fdc..35543a67cf95e01020e5fc6c2d4e3ae2126bdd83 100644 (file)
@@ -375,6 +375,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS          = 0,
                    CTDB_CONTROL_TUNNEL_DEREGISTER       = 153,
                    CTDB_CONTROL_VACUUM_FETCH            = 154,
                    CTDB_CONTROL_DB_VACUUM               = 155,
+                   CTDB_CONTROL_ECHO_DATA               = 156,
 };
 
 #define MAX_COUNT_BUCKETS 16
@@ -859,6 +860,11 @@ struct ctdb_db_vacuum {
 
 };
 
+struct ctdb_echo_data {
+       uint32_t timeout;
+       TDB_DATA buf;
+};
+
 struct ctdb_req_control_data {
        uint32_t opcode;
        union {
@@ -897,6 +903,7 @@ struct ctdb_req_control_data {
                struct ctdb_traverse_all_ext *traverse_all_ext;
                struct ctdb_pid_srvid *pid_srvid;
                struct ctdb_db_vacuum *db_vacuum;
+               struct ctdb_echo_data *echo_data;
        } data;
 };
 
@@ -932,6 +939,7 @@ struct ctdb_reply_control_data {
                enum ctdb_runstate runstate;
                uint32_t num_records;
                int tdb_flags;
+               struct ctdb_echo_data *echo_data;
        } data;
 };