mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-05 13:10:37 +00:00
Make vectored read_blobs function not fill buffer correctly
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user