This commit is contained in:
Christian Schwarz
2024-09-11 20:04:39 +00:00
parent 02b7cdb305
commit 942bc9544b

View File

@@ -587,7 +587,7 @@ impl PageServerHandler {
return Err(QueryError::Shutdown)
}
msg = pgb.read_message() => { break msg; }
() = futures::future::ready(()) => {
() = futures::future::ready(()), if num_consecutive_getpage_requests > 0 => {
CONSECUTIVE_NONBLOCKING_GETPAGE_REQUESTS_HISTOGRAM.observe(num_consecutive_getpage_requests as f64);
num_consecutive_getpage_requests = 0;
}