Add logging of incremental snapshots to purge_old_snapshot_archives() (#19874)
This commit is contained in:
@ -1233,9 +1233,10 @@ pub fn purge_old_snapshot_archives<P>(
|
|||||||
P: AsRef<Path>,
|
P: AsRef<Path>,
|
||||||
{
|
{
|
||||||
info!(
|
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(),
|
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);
|
let mut snapshot_archives = get_full_snapshot_archives(&snapshot_archives_dir);
|
||||||
snapshot_archives.sort_unstable();
|
snapshot_archives.sort_unstable();
|
||||||
|
Reference in New Issue
Block a user