From 21bc7e94f5f36e24c5e5d8d46efb6facf570306b Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Tue, 14 Sep 2021 17:49:15 -0500 Subject: [PATCH] Add logging of incremental snapshots to purge_old_snapshot_archives() (#19874) --- runtime/src/snapshot_utils.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 7354d3fb5e..c2ce01d98b 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -1233,9 +1233,10 @@ pub fn purge_old_snapshot_archives

( P: AsRef, { info!( - "Purging old snapshot archives in {}, retaining {} full snapshots", + "Purging old snapshot archives in {}, retaining {} full snapshots and {} incremental snapshots", snapshot_archives_dir.as_ref().display(), - maximum_full_snapshot_archives_to_retain + maximum_full_snapshot_archives_to_retain, + maximum_incremental_snapshot_archives_to_retain ); let mut snapshot_archives = get_full_snapshot_archives(&snapshot_archives_dir); snapshot_archives.sort_unstable();