ledger_cleanup_service: compact at a slower rate than purging (#10414)

This commit is contained in:
Michael Vines
2020-06-04 21:06:06 -07:00
committed by GitHub
parent da34310eb4
commit aa6832964c
3 changed files with 67 additions and 23 deletions

View File

@ -374,14 +374,17 @@ mod tests {
// send signal to cleanup slots
let (sender, receiver) = channel();
sender.send(n).unwrap();
let mut next_purge_batch = 0;
let mut last_purge_slot = 0;
let mut last_compaction_slot = 0;
LedgerCleanupService::cleanup_ledger(
&receiver,
&blockstore,
max_ledger_shreds,
&mut next_purge_batch,
&mut last_purge_slot,
10,
None,
&mut last_compaction_slot,
10,
)
.unwrap();