Skip to content

Commit 5fc7238

Browse files
committed
Move offset calculation back
1 parent 7c626b6 commit 5fc7238

File tree

1 file changed

+2
-2
lines changed
  • packages/orchestrator/internal/sandbox/block

1 file changed

+2
-2
lines changed

packages/orchestrator/internal/sandbox/block/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ func (c *Cache) copyProcessMemory(
441441
return fmt.Errorf("failed to read memory: expected %d bytes, got %d", segmentSize, n)
442442
}
443443

444-
offset += segmentSize
445-
446444
for _, blockOff := range header.BlocksOffsets(segmentSize, c.blockSize) {
447445
c.dirty.Store(offset+blockOff, struct{}{})
448446
}
449447

448+
offset += segmentSize
449+
450450
break
451451
}
452452
}

0 commit comments

Comments
 (0)