diff options
author | Robert Haas <rhaas@postgresql.org> | 2023-10-03 10:37:20 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2023-10-03 10:37:20 -0400 |
commit | 053183138a7a11408d6faa9281001ff7b1ffee2e (patch) | |
tree | fe3455248146e7b73e979e0bf502bcd4b7d17ba0 /src/backend/commands/indexcmds.c | |
parent | a956bd3fa9d937689db24620002c78221eaffddd (diff) | |
download | postgresql-053183138a7a11408d6faa9281001ff7b1ffee2e.tar.gz postgresql-053183138a7a11408d6faa9281001ff7b1ffee2e.zip |
In basebackup.c, refactor to create verify_page_checksum.
If checksum verification fails for a particular page, we reread the
page and try one more time. The code that does this somewhat complex
and difficult to follow. Move some of the logic into a new function
and rearrange the code a bit to try to make it clearer. This way,
we don't need the block_retry Boolean, a couple of other variables
move from sendFile() into the new function, and some code is now less
deeply indented.
Patch by me, reviewed by David Steele.
Discussion: http://postgr.es/m/CA+TgmoYt5jXH4U6cu1dm9Oe2FTn1aae6hBNhZzJJjyjbE_zYig@mail.gmail.com
Diffstat (limited to 'src/backend/commands/indexcmds.c')
0 files changed, 0 insertions, 0 deletions