Migrate BlockRc and BlockResyncManager to TypedTree

This commit is contained in:
Arthur Carcano
2026-06-10 17:10:29 +02:00
committed by Alex
parent eb91f463f5
commit 5a4da29f92
7 changed files with 186 additions and 113 deletions
+1 -8
View File
@@ -360,14 +360,7 @@ impl Worker for BlockRcRepair {
_must_exit: &mut watch::Receiver<bool>,
) -> Result<WorkerState, GarageError> {
for _i in 0..RC_REPAIR_ITER_COUNT {
let next1 = self
.block_manager
.rc
.rc_table
.range(self.cursor.as_slice()..)?
.next()
.transpose()?
.map(|(k, _)| Hash::try_from(k.as_slice()).unwrap());
let next1 = self.block_manager.rc.get_first_hash_from(self.cursor)?;
let next2 = self
.block_ref_table
.data