Remove emode argument from XLogFileRead/XLogFileReadAnyTLI
Hi,
Since 1bb2558046c, XLogFileRead() doesn't use the emode argument.
Also, since abf5c5c9a4f, XLogFileReadAnyTLI() is called just once
and emode is always DEBUG2. So, I think we can remove the emode
argument from these functions. I've atached the patch.
Regards,
Yugo Nagata
--
Yugo Nagata <nagata@sraoss.co.jp>
Attachments:
Remove_emode_from_XLogFileRead.patchtext/x-diff; name=Remove_emode_from_XLogFileRead.patchDownload+6-6
On Fri, Sep 06, 2024 at 08:10:43PM +0900, Yugo Nagata wrote:
Since 1bb2558046c, XLogFileRead() doesn't use the emode argument.
Also, since abf5c5c9a4f, XLogFileReadAnyTLI() is called just once
and emode is always DEBUG2. So, I think we can remove the emode
argument from these functions. I've atached the patch.
It's true that the last relevant caller of XLogFileReadAnyTLI() that
required an emode is abf5c5c9a4f1, as you say, that's also what I am
tracking down. Any objections to that?
--
Michael
On Mon, 9 Sep 2024 12:16:01 +0900
Michael Paquier <michael@paquier.xyz> wrote:
On Fri, Sep 06, 2024 at 08:10:43PM +0900, Yugo Nagata wrote:
Since 1bb2558046c, XLogFileRead() doesn't use the emode argument.
Also, since abf5c5c9a4f, XLogFileReadAnyTLI() is called just once
and emode is always DEBUG2. So, I think we can remove the emode
argument from these functions. I've atached the patch.It's true that the last relevant caller of XLogFileReadAnyTLI() that
required an emode is abf5c5c9a4f1, as you say, that's also what I am
tracking down. Any objections to that?
Thank you for looking into this.
I mean to remove emode from XLogFileRead, too, but this fix is accidentally
missed in the previous patch. I attached the updated patch.
Regards,
Yugo Nagata
--
Yugo NAGATA <nagata@sraoss.co.jp>
Attachments:
v2_Remove_emode_from_XLogFileRead.patchtext/x-diff; name=v2_Remove_emode_from_XLogFileRead.patchDownload+9-12
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