diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-01-17 19:05:19 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-01-17 19:27:04 +0200 |
commit | 1296d5c53cad26c775993d6c29e1311919202638 (patch) | |
tree | 4e49b02886034e3d3a4a158e6334cce5453814ba /src/backend/access/transam/xlogfuncs.c | |
parent | b14f81bc9a65993129e93052634e358b310b8554 (diff) | |
download | postgresql-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