diff options
author | Michael Paquier | 2021-06-30 02:48:53 +0000 |
---|---|---|
committer | Michael Paquier | 2021-06-30 02:48:53 +0000 |
commit | 17707c059cf4bf610e3b1833df5ca17cf223fe5f (patch) | |
tree | 8102c5cf7079a5cf5d6bf1892acba7200a25f156 /src/backend/access/transam/xlog.c | |
parent | 4c9f50d116461617848601e97dbc6f122b0a6f14 (diff) |
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/backend/access/transam/xlog.c')
-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 9cbca6392d3..7890e13d7a1 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5838,7 +5838,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); |