Make vectored read_blobs function not fill buffer correctly

This commit is contained in:
Arpad Müller
2024-07-09 15:40:25 +02:00
parent 0a937b7f91
commit f7c24c2834

View File

@@ -315,7 +315,7 @@ impl<'a> VectoredBlobReader<'a> {
read.size(),
buf.capacity()
);
let buf = self
let mut buf = self
.file
.read_exact_at(buf.slice(0..read.size()), read.start, ctx)
.await?
@@ -364,6 +364,8 @@ impl<'a> VectoredBlobReader<'a> {
assert_eq!(end - start, blob_size);
buf[start as usize..end as usize].fill(0xaf);
metas.push(VectoredBlob {
start: start as usize,
end: end as usize,