diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-10-12 09:59:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-10-12 09:59:36 +0900 |
commit | a1176c67c42cf687675be762ebb6075e092d3d0a (patch) | |
tree | 58f7d47c95879cec9fd9416ca21c91dc6bc86d62 /src/backend/tcop/postgres.c | |
parent | 94fd253d561bcc1db067d04f75fc1f34c3b9962f (diff) | |
download | postgresql-a1176c67c42cf687675be762ebb6075e092d3d0a.tar.gz postgresql-a1176c67c42cf687675be762ebb6075e092d3d0a.zip |
Simplify some maths in xlogreader.c
An LSN was calculated from a segment number, a segment size and a
position offset, matching exactly the LSN given by the caller of
XLogReaderValidatePageHeader(). This change removes the extra LSN
calculation, relying only on the LSN given by the function caller
instead.
Author: Bharath Rupireddy
Reviewed-by: Richard Guo, Álvaro Herrera, Kyotaro Horiguchi
Discussion: https://postgr.es/m/CALj2ACXuh4Ms9j9sxMYdtHEe=5sFcyrs-GAHyADu_A_G71kZTg@mail.gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions