Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 17707c0

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 4c9f50d commit 17707c0

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
@@ -5838,7 +5838,7 @@ recoveryStopsBefore(XLogReaderState *record)
58385838
xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record);
58395839
xl_xact_parsed_abort parsed;
58405840

5841-
isCommit = true;
5841+
isCommit = false;
58425842
ParseAbortRecord(XLogRecGetInfo(record),
58435843
xlrec,
58445844
&parsed);

0 commit comments

Comments
 (0)