Fix the incorrect range in SegmentSlice

This commit is contained in:
Shaowei Song
2024-10-12 10:00:44 +00:00
committed by Tate, Hongliang Tian
parent d15aacfb4d
commit ee33216875

View File

@ -126,9 +126,10 @@ impl VmIo for SegmentSlice {
impl From<Segment> for SegmentSlice {
fn from(segment: Segment) -> Self {
let range = 0..segment.nbytes() / PAGE_SIZE;
Self {
inner: Arc::new(segment),
range: 0..1,
range,
}
}
}