8000 Fix incorrect PITR message for transaction ROLLBACK PREPARED · postgres/postgres@d8569db · GitHub
[go: up one dir, main page]

Skip to content

Commit d8569db

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 06a2b2f commit d8569db

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
@@ -5765,7 +5765,7 @@ recoveryStopsBefore(XLogReaderState *record)
57655765
xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record);
57665766
xl_xact_parsed_abort parsed;
57675767

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

0 commit comments

Comments
0