diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-06-30 11:49:20 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-06-30 11:49:20 +0900 |
commit | b5ee867a79b67d859b29e19ceb73300e33627074 (patch) | |
tree | a26260a047cb781ba00a12024e5cd46ea209f27a /src | |
parent | 240d56fc4351a6729ec9ddf94a3d338a1e4868ab (diff) | |
download | postgresql-b5ee867a79b67d859b29e19ceb73300e33627074.tar.gz postgresql-b5ee867a79b67d859b29e19ceb73300e33627074.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 67dcd1e126d..9f682c85677 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5713,7 +5713,7 @@ recoveryStopsBefore(XLogReaderState *record) xl_xact_abort *xlrec = (xl_xact_abort *) XLogRecGetData(record); xl_xact_parsed_abort parsed; - isCommit = true; + isCommit = false; ParseAbortRecord(XLogRecGetInfo(record), xlrec, &parsed); |