A out of date comment of WaitForWALToBecomeAvailable

From: "Andy Fan" <zhihuifan1213(at)163(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: thomas(dot)munro(at)gmail(dot)com
Subject: A out of date comment of WaitForWALToBecomeAvailable
Date: 2026-01-30 02:29:41
Message-ID: 1609c75b.2093.19c0cbc20b6.Coremail.zhihuifan1213@163.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The following comment looks out of date now. should we fix it as following?

*
- * 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.
*
..
static XLogPageReadResult
WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess, ..)

Thanks

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-01-30 03:12:38 Re: BUG: Cascading standby fails to reconnect after falling back to archive recovery
Previous Message David G. Johnston 2026-01-30 02:16:30 Re: Document NULL