From 96c550222b7340f57cf93061928378fd45a5fd81 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 25 May 2023 14:53:20 +0200 Subject: [PATCH] apply heikki's comment suggestion --- pageserver/src/tenant/timeline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageserver/src/tenant/timeline.rs b/pageserver/src/tenant/timeline.rs index ba0cd29361..b0aca45882 100644 --- a/pageserver/src/tenant/timeline.rs +++ b/pageserver/src/tenant/timeline.rs @@ -622,7 +622,7 @@ impl Timeline { { Ok(()) => Ok(()), Err(e) => { - // walreceiver.status() locks internally, don't count that towards the wait_lsn_time_histo + // don't count the time spent waiting for lock below, and also in walreceiver.status(), towards the wait_lsn_time_histo drop(_timer); let walreceiver_status = { match &*self.walreceiver.lock().unwrap() {