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

Commit b5ee867

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 240d56f commit b5ee867

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
@@ -5713,7 +5713,7 @@ recoveryStopsBefore(XLogReaderState *record)
57135713
xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record);
57145714
xl_xact_parsed_abort parsed;
57155715

5716-
isCommit = true;
5716+
isCommit = false;
57175717
ParseAbortRecord(XLogRecGetInfo(record),
57185718
xlrec,
57195719
&parsed);

0 commit comments

Comments
 (0)