mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-28 10:30:40 +00:00
just not instrumented, validate that again, should be equivalent with f9528ec980
This commit is contained in:
@@ -1076,6 +1076,13 @@ impl PageServerHandler {
|
||||
|
||||
// what we want to do
|
||||
let flush_fut = pgb_writer.flush();
|
||||
// metric for how long flushing takes
|
||||
let flush_fut = match flushing_timer {
|
||||
Some(flushing_timer) => {
|
||||
futures::future::Either::Left(flushing_timer.measure(flush_fut))
|
||||
}
|
||||
None => futures::future::Either::Right(flush_fut),
|
||||
};
|
||||
// do it while respecting cancellation
|
||||
let _: () = async move {
|
||||
tokio::select! {
|
||||
|
||||
Reference in New Issue
Block a user