Skip to content

Commit

Permalink
one read
Browse files Browse the repository at this point in the history
Signed-off-by: coldWater <[email protected]>
  • Loading branch information
forsaken628 committed Oct 12, 2024
1 parent ded1977 commit 17799e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/service/src/spillers/spiller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl Spiller {
let mut file = tokio::fs::File::open(path).await?;
file.seek(io::SeekFrom::Start(data_range.start)).await?;

let mut data = Vec::new();
let mut data = Vec::with_capacity(data_range.count());
file.take(data_range.count() as u64)
.read_to_end(&mut data)
.await?;
Expand Down

0 comments on commit 17799e3

Please sign in to comment.