mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-24 16:40:38 +00:00
Revert "debug cruft, likely will revert but this proved useful, esp log_if_slow"
This reverts commit 0fd67b27e5.
Bunch of conflicts.
This commit is contained in:
@@ -15,9 +15,6 @@ pub(super) mod tokio_epoll_uring_ext;
|
||||
use tokio_epoll_uring::IoBuf;
|
||||
use tracing::Instrument;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
use {crate::log_if_slow, std::time::Duration};
|
||||
|
||||
pub(crate) use super::api::IoEngineKind;
|
||||
#[derive(Clone, Copy)]
|
||||
#[repr(u8)]
|
||||
@@ -152,18 +149,8 @@ impl IoEngine {
|
||||
}
|
||||
#[cfg(target_os = "linux")]
|
||||
IoEngine::TokioEpollUring => {
|
||||
let system = log_if_slow(
|
||||
"thread_local_system",
|
||||
Duration::from_secs(1),
|
||||
tokio_epoll_uring_ext::thread_local_system(),
|
||||
)
|
||||
.await;
|
||||
let (resources, res) = log_if_slow(
|
||||
"system.read",
|
||||
Duration::from_secs(1),
|
||||
system.read(file_guard, offset, slice),
|
||||
)
|
||||
.await;
|
||||
let system = tokio_epoll_uring_ext::thread_local_system().await;
|
||||
let (resources, res) = system.read(file_guard, offset, slice).await;
|
||||
(resources, res.map_err(epoll_uring_error_to_std))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user