From 57095b98c1f34966ed16ac720e25696a5e78f529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arpad=20M=C3=BCller?= Date: Wed, 25 Oct 2023 20:45:01 +0200 Subject: [PATCH] Comment improvement --- pageserver/src/pgdatadir_mapping.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pageserver/src/pgdatadir_mapping.rs b/pageserver/src/pgdatadir_mapping.rs index a3352563aa..1fc57bb0c7 100644 --- a/pageserver/src/pgdatadir_mapping.rs +++ b/pageserver/src/pgdatadir_mapping.rs @@ -355,7 +355,8 @@ impl Timeline { } } // If `found_smaller == true`, `low` is the LSN of the first commit record - // **before** the `search_timestamp` + 1 (to hit the while loop exit condition). + // **before** `search_timestamp` + 1 (otherwise the while loop exit condition + // wouldn't be hit). // Subtract 1 to get back the exact commit LSN. let commit_lsn = Lsn((low - 1) * 8); match (found_smaller, found_larger) {