Skip to content

Commit e2ac9b9

Browse files
committed
Retention index fix temp upgrade logic
1 parent 1243a04 commit e2ac9b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

consensus/src/pipeline/pruning_processor/processor.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,11 @@ impl PruningProcessor {
383383

384384
// Prune the selected chain index below the pruning point
385385
let mut selected_chain_write = self.selected_chain_store.write();
386-
selected_chain_write.prune_below_pruning_point(BatchDbWriter::new(&mut batch), retention_period_root).unwrap();
386+
if let None =
387+
selected_chain_write.prune_below_pruning_point(BatchDbWriter::new(&mut batch), retention_period_root).unwrap_option()
388+
{
389+
warn!("Temporary upgrade logic: repairing index up to retention root");
390+
}
387391

388392
// Flush the batch to the DB
389393
self.db.write(batch).unwrap();

0 commit comments

Comments
 (0)