aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogfuncs.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-01-17 19:05:19 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-01-17 19:27:04 +0200
commit1296d5c53cad26c775993d6c29e1311919202638 (patch)
tree4e49b02886034e3d3a4a158e6334cce5453814ba /src/backend/access/transam/xlogfuncs.c
parentb14f81bc9a65993129e93052634e358b310b8554 (diff)
downloadpostgresql-1296d5c53cad26c775993d6c29e1311919202638.tar.gz
postgresql-1296d5c53cad26c775993d6c29e1311919202638.zip
Fix a couple of error-handling bugs in the xlogreader patch.
XLogReadRecord should reset its state on every error, to make sure it re-reads the page on next call. It was inconsistent in that some errors did that, but some did not. In ReadRecord(), don't give up on an error if we're in standby mode. The loop was set up to retry, but the checks within the loop broke out of the loop on any error. Andres Freund, with some tweaking by me.
Diffstat (limited to 'src/backend/access/transam/xlogfuncs.c')
0 files changed, 0 insertions, 0 deletions