diff options
author | Martin Schwenke <martin@meltin.net> | 2019-07-30 10:34:03 +1000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-03-30 10:08:24 +0000 |
commit | d036521725dbec030233e4e787accf0db6b134e6 (patch) | |
tree | 3b4cc51bc488ea8820012dd4c262f5dcbf00d875 /ctdb | |
parent | bfdd98317b40391d1733bcca39b66bf40c66814d (diff) | |
download | samba-d036521725dbec030233e4e787accf0db6b134e6.tar.gz |
ctdb-protocol: Add new control CTDB_CONTROL_DB_VACUUM
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit b314835341e4028f0770fa7f9a37d2d21448ddfd)
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/protocol/protocol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h index e47daeadba1..43175ae3a95 100644 --- a/ctdb/protocol/protocol.h +++ b/ctdb/protocol/protocol.h @@ -374,6 +374,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS = 0, CTDB_CONTROL_TUNNEL_REGISTER = 152, CTDB_CONTROL_TUNNEL_DEREGISTER = 153, CTDB_CONTROL_VACUUM_FETCH = 154, + CTDB_CONTROL_DB_VACUUM = 155, }; #define MAX_COUNT_BUCKETS 16 @@ -852,6 +853,12 @@ struct ctdb_pid_srvid { uint64_t srvid; }; +struct ctdb_db_vacuum { + uint32_t db_id; + bool full_vacuum_run; + +}; + struct ctdb_req_control_data { uint32_t opcode; union { @@ -889,6 +896,7 @@ struct ctdb_req_control_data { struct ctdb_traverse_start_ext *traverse_start_ext; struct ctdb_traverse_all_ext *traverse_all_ext; struct ctdb_pid_srvid *pid_srvid; + struct ctdb_db_vacuum *db_vacuum; } data; }; |