Enable incremental snapshots by default (#22938)
Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@ -795,11 +795,24 @@ pub fn main() {
|
||||
Arg::with_name("incremental_snapshots")
|
||||
.long("incremental-snapshots")
|
||||
.takes_value(false)
|
||||
.hidden(true)
|
||||
.conflicts_with("no_incremental_snapshots")
|
||||
.help("Enable incremental snapshots")
|
||||
.long_help("Enable incremental snapshots by setting this flag. \
|
||||
When enabled, --snapshot-interval-slots will set the \
|
||||
incremental snapshot interval. To set the full snapshot \
|
||||
interval, use --full-snapshot-interval-slots.")
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("no_incremental_snapshots")
|
||||
.long("no-incremental-snapshots")
|
||||
.takes_value(false)
|
||||
.help("Disable incremental snapshots")
|
||||
.long_help("Disable incremental snapshots by setting this flag. \
|
||||
When enabled, --snapshot-interval-slots will set the \
|
||||
incremental snapshot interval. To set the full snapshot \
|
||||
interval, use --full-snapshot-interval-slots.")
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("incremental_snapshot_interval_slots")
|
||||
.long("incremental-snapshot-interval-slots")
|
||||
@ -1910,7 +1923,7 @@ pub fn main() {
|
||||
"max_genesis_archive_unpacked_size",
|
||||
u64
|
||||
),
|
||||
incremental_snapshot_fetch: matches.is_present("incremental_snapshots"),
|
||||
incremental_snapshot_fetch: !matches.is_present("no_incremental_snapshots"),
|
||||
};
|
||||
|
||||
let private_rpc = matches.is_present("private_rpc");
|
||||
@ -2373,7 +2386,7 @@ pub fn main() {
|
||||
value_t_or_exit!(matches, "incremental_snapshot_interval_slots", u64);
|
||||
let (full_snapshot_archive_interval_slots, incremental_snapshot_archive_interval_slots) =
|
||||
if incremental_snapshot_interval_slots > 0 {
|
||||
if matches.is_present("incremental_snapshots") {
|
||||
if !matches.is_present("no_incremental_snapshots") {
|
||||
(
|
||||
value_t_or_exit!(matches, "full_snapshot_interval_slots", u64),
|
||||
incremental_snapshot_interval_slots,
|
||||
@ -2420,6 +2433,9 @@ pub fn main() {
|
||||
|
||||
exit(1);
|
||||
}
|
||||
if matches.is_present("incremental_snapshots") {
|
||||
warn!("--incremental-snapshots is now the default behavior. This flag is deprecated and can be removed from the launch args")
|
||||
}
|
||||
|
||||
if matches.is_present("limit_ledger_size") {
|
||||
let limit_ledger_size = match matches.value_of("limit_ledger_size") {
|
||||
|
Reference in New Issue
Block a user