mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-17 02:12:56 +00:00
@@ -235,8 +235,6 @@ async fn download_object<'a>(
|
||||
Ok(chunk) => chunk,
|
||||
Err(e) => return Err(e),
|
||||
};
|
||||
// TODO(yuchen): might have performance issue when using borrowed version?
|
||||
// Problem: input is Bytes, does not satisify IO alignment requirement.
|
||||
buffered.write_buffered_borrowed(&chunk, ctx).await?;
|
||||
}
|
||||
let inner = buffered.flush_and_into_inner(ctx).await?;
|
||||
|
||||
@@ -17,7 +17,6 @@ pub struct FlushHandle<Buf, W> {
|
||||
pub(super) maybe_flushed: Option<FullSlice<Buf>>,
|
||||
}
|
||||
|
||||
// TODO(yuchen): special actions in drop to clean up the join handle?
|
||||
pub struct FlushHandleInner<Buf, W> {
|
||||
/// A bi-directional channel that sends (buffer, offset) for writes,
|
||||
/// and receives recyled buffer.
|
||||
|
||||
Reference in New Issue
Block a user