ledger-tool: Add deprecation warning for --no-compaction (#31178)

The argument is deprecated with a change in default behavior but this
may not be obvious to a user; the warning makes this a bit more visible.
This commit is contained in:
steviez 2023-04-15 00:18:03 -05:00 committed by GitHub
parent 07e038bceb
commit f3935f679e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -4156,6 +4156,9 @@ fn main() {
let start_slot = value_t_or_exit!(arg_matches, "start_slot", Slot);
let end_slot = value_t!(arg_matches, "end_slot", Slot).ok();
let perform_compaction = arg_matches.is_present("enable_compaction");
if arg_matches.is_present("no_compaction") {
warn!("--no-compaction is deprecated and is now the default behavior.");
}
let dead_slots_only = arg_matches.is_present("dead_slots_only");
let batch_size = value_t_or_exit!(arg_matches, "batch_size", usize);