File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -389,13 +389,16 @@ impl DsForCopy {
389389 // unclamp block range if it ends beyond target block
390390 match self . block_range . 1 {
391391 Bound :: Included ( block) if block > target_block => self . block_range . 1 = Bound :: Unbounded ,
392+ Bound :: Excluded ( block) if block - 1 > target_block => {
393+ self . block_range . 1 = Bound :: Unbounded
394+ }
392395 _ => { /* use block range as is */ }
393396 }
394397 // Translate manifest index
395398 let src_created = match self . block_range . 0 {
396399 Bound :: Included ( block) => block,
397400 Bound :: Excluded ( block) => block + 1 ,
398- Bound :: Unbounded => i32 :: MAX ,
401+ Bound :: Unbounded => 0 ,
399402 } ;
400403 self . idx = map. dst_idx ( self . idx , src_nsp, src_created, dst_nsp) ?;
401404 Ok ( self )
You can’t perform that action at this time.
0 commit comments