From 3429877f4e576da28f26e01f6135c13553174711 Mon Sep 17 00:00:00 2001 From: Fan Zhihui Date: Fri, 30 Jan 2026 18:16:41 +0800 Subject: [PATCH v1 1/1] Fix out-of-date comment in WaitForWALToBecomeAvailable Commit 5dc0418 updated the return type but forgot to update the comments. --- src/backend/access/transam/xlogrecovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index 117d8d8bb6b..a0191fa1e2e 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -3574,7 +3574,7 @@ next_record_is_invalid: * timelines, we can reject a switch to a timeline that branched off before * this point. * - * If the record is not immediately available, the function returns false + * If the record is not immediately available, the function returns XLREAD_FAIL * if we're not in standby mode. In standby mode, waits for it to become * available. * -- 2.45.2