postgres.git / summary / log / commit / refs

commit    607a3a43bca573a02570f374fd98c82a0c2e12a1
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Wed Jun 30 02:49:10 2021 +0000
First released in: 15.0, 9.6.23, 10.18, 11.13, 12.8, 13.4, 14.0

    Fix incorrect PITR message for transaction ROLLBACK PREPARED
    
    Reaching PITR on such a transaction would cause the generation of a LOG
    message mentioning a transaction committed, not aborted.
    
    Oversight in 4f1b890.
    
    Author: Simon Riggs
    Discussion: https://postgr.es/m/CANbhV-GJ6KijeCgdOrxqMCQ+C8QiK657EMhCy4csjrPcEUFv_Q@mail.gmail.com
    Backpatch-through: 9.6


src/backend/access/transam/xlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 1b3a3d9beab..c64ed561f90 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5808,7 +5808,7 @@ recoveryStopsBefore(XLogReaderState *record) xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record); xl_xact_parsed_abort parsed; - isCommit = true; + isCommit = false; ParseAbortRecord(XLogRecGetInfo(record), xlrec, &parsed); [parent: 322e82b77ef4]