Revert "disable flush time measurement"

This reverts commit 0cd4e120da.
This commit is contained in:
Christian Schwarz
2025-02-05 15:12:35 +01:00
parent 0cd4e120da
commit 6add559b92
+6 -6
View File
@@ -1077,12 +1077,12 @@ 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),
// };
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! {