Add incremental_snapshot_archive_interval_slots to SnapshotConfig (#19026)

This commit also renames `snapshot_interval_slots` to
`full_snapshot_archive_interval_slots`, updates the comments on the
fields, and make appropriate updates where SnapshotConfig is used.
This commit is contained in:
Brooks Prumo
2021-08-04 14:40:20 -05:00
committed by GitHub
parent cc27b8a5a7
commit ca14475085
11 changed files with 26 additions and 15 deletions

View File

@ -6,13 +6,16 @@ use std::path::PathBuf;
/// Snapshot configuration and runtime information
#[derive(Clone, Debug)]
pub struct SnapshotConfig {
/// Generate a new snapshot every this many slots
pub snapshot_interval_slots: Slot,
/// Generate a new full snapshot archive every this many slots
pub full_snapshot_archive_interval_slots: Slot,
/// Where to store the latest packaged snapshot
/// Generate a new incremental snapshot archive every this many slots
pub incremental_snapshot_archive_interval_slots: Slot,
/// Where to store the latest packaged snapshot archives
pub snapshot_package_output_path: PathBuf,
/// Where to place the snapshots for recent slots
/// Where to place the bank snapshots for recent slots
pub snapshot_path: PathBuf,
/// The archive format to use for snapshots
@ -21,6 +24,6 @@ pub struct SnapshotConfig {
/// Snapshot version to generate
pub snapshot_version: SnapshotVersion,
/// Maximum number of snapshots to retain
/// Maximum number of full snapshot archives to retain
pub maximum_snapshots_to_retain: usize,
}