Skip to content

Commit 93d3d0c

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 34c24e5 commit 93d3d0c

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
@@ -5845,7 +5845,7 @@ recoveryStopsBefore(XLogReaderState *record)
58455845
xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record);
58465846
xl_xact_parsed_abort parsed;
58475847

5848-
isCommit = true;
5848+
isCommit = false;
58495849
ParseAbortRecord(XLogRecGetInfo(record),
58505850
xlrec,
58515851
&parsed);

0 commit comments

Comments
 (0)