Skip to content

Commit

Permalink
Merge pull request #1723 from 0chain/fix/repair-v2
Browse files Browse the repository at this point in the history
Fix repair v2
  • Loading branch information
dabasov authored Jan 5, 2025
2 parents 37a5ac0 + 00ab5b9 commit 9f52f52
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion zboxcore/sdk/repairworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,17 @@ func (r *RepairRequest) iterateDirV2(ctx context.Context) {
}
diff.tgtRef, diff.tgtEOF = <-diff.tgtChan
} else if diff.tgtRef.Path < srcRef.Path {
deleteMask = deleteMask.Or(diff.mask)
delMask := diff.mask
op := OperationRequest{
OperationType: constants.FileOperationDelete,
RemotePath: diff.tgtRef.Path,
Mask: &delMask,
}
ops = append(ops, op)
toNextRef = false
diff.tgtRef, diff.tgtEOF = <-diff.tgtChan
} else {
uploadMask = uploadMask.Or(diff.mask)
}
}
if deleteMask.CountOnes() > 0 {
Expand Down

0 comments on commit 9f52f52

Please sign in to comment.