mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
Fix ftruncate method implementation in Handle struct
Co-Authored-By: christian@neon.tech <christian@neon.tech>
This commit is contained in:
@@ -206,6 +206,14 @@ impl Handle {
|
||||
file: F,
|
||||
len: u64,
|
||||
) -> (F, Result<(), tokio_epoll_uring::Error<std::io::Error>>) {
|
||||
self.deref().ftruncate(file, len).await
|
||||
let system_handle = self.deref();
|
||||
let op = tokio_epoll_uring::FtruncateOp { file, len };
|
||||
tokio_epoll_uring::system::submission::op_fut::execute_op(
|
||||
op,
|
||||
system_handle.submit_side_weak(),
|
||||
None,
|
||||
system_handle.metrics().clone(),
|
||||
)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user