• Heikki Linnakangas's avatar
    Fix a couple of error-handling bugs in the xlogreader patch. · 1296d5c5
    Heikki Linnakangas authored
    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.
    1296d5c5
xlogreader.c 26.2 KB