From: Martin Schwenke Date: Tue, 30 Jul 2019 00:34:03 +0000 (+1000) Subject: ctdb-protocol: Add new control CTDB_CONTROL_DB_VACUUM X-Git-Tag: talloc-2.3.1~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b314835341e4028f0770fa7f9a37d2d21448ddfd;p=thirdparty%2Fsamba.git ctdb-protocol: Add new control CTDB_CONTROL_DB_VACUUM Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- 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; };