Skip to content

Commit 41edb2d

Browse files
committed
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
1 parent 1603dec commit 41edb2d

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5764,7 +5764,7 @@ recoveryStopsBefore(XLogReaderState *record)
57645764
xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record);
57655765
xl_xact_parsed_abort parsed;
57665766

5767-
isCommit = true;
5767+
isCommit = false;
57685768
ParseAbortRecord(XLogRecGetInfo(record),
57695769
xlrec,
57705770
&parsed);

0 commit comments

Comments
 (0)