diff options
author | Amit Kapila <akapila@postgresql.org> | 2024-07-09 09:00:45 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2024-07-09 09:00:45 +0530 |
commit | 571f7f70865cdaf1a49e7934208ad139575e3f03 (patch) | |
tree | 7bf0cb71dfd1bc0b11399d0aa3744ba65fe8d1a7 /src/backend/utils/adt/numeric.c | |
parent | b68b29bc8feca0eb340cb857ff1d28d4099c7878 (diff) | |
download | postgresql-571f7f70865cdaf1a49e7934208ad139575e3f03.tar.gz postgresql-571f7f70865cdaf1a49e7934208ad139575e3f03.zip |
To improve the code, move the error check in logical_read_xlog_page().
Commit 0fdab27ad6 changed the code to wait for WAL to be available before
determining the timeline but forgot to move the failure check.
This change is to make the related code easier to understand and enhance
otherwise there is no bug in the current code.
In the passing, improve the nearby comments to explain why we determine
am_cascading_walsender after waiting for the required WAL.
Author: Peter Smith
Reviewed-by: Bertrand Drouvot, Amit Kapila
Discussion: https://postgr.es/m/CAHut+PvqX49fusLyXspV1Mmd_EekPtXG0oT146vZjcb9XDvNgw@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions