Make a no-op compaction really a no-op compaction
ci/woodpecker/push/build Pipeline failed Details
ci/woodpecker/push/release Pipeline was successful Details

This commit is contained in:
Olivier 'reivilibre' 2022-11-20 08:57:22 +00:00
parent 34c619ef41
commit e85c606c95
1 changed files with 5 additions and 0 deletions

View File

@ -636,6 +636,11 @@ impl SqliteBloblogPile {
pub chunk_id: ChunkId,
}
if plan.bloblogs_to_replace.is_empty() {
info!("No compaction to be done.");
return Ok(());
}
let mut to_preserve = BTreeSet::new();
let mut replacements = BTreeMap::new();