Re: Remove emode argument from XLogFileRead/XLogFileReadAnyTLI

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: pgsql-hackers@postgresql.org
Date: 2024-09-09T23:45:45Z
Lists: pgsql-hackers
On Mon, Sep 09, 2024 at 05:45:13PM +0900, Yugo NAGATA wrote:
> I mean to remove emode from XLogFileRead, too, but this fix is accidentally
> missed in the previous patch. I attached the updated patch.

This is neat because we don't need to guess how XLogFileRead() should
fail on PANIC, allow things with a DEBUG2 or something else, and
XLogFileReadAnyTLI()'s sole caller used DEBUG2.  Applied.
--
Michael

Commits

  1. Remove emode argument from XLogFileRead() and XLogFileReadAnyTLI()