Commit 60d93182 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Oops, fix recoveryStopsBefore functions for regular commits.

Pointed out by Tom Lane. Backpatch to 9.4, the code was structured
differently in earlier branches and didn't have this mistake.
parent e74e0906
...@@ -5515,7 +5515,7 @@ recoveryStopsBefore(XLogRecord *record) ...@@ -5515,7 +5515,7 @@ recoveryStopsBefore(XLogRecord *record)
isCommit = true; isCommit = true;
recordXid = record->xl_xid; recordXid = record->xl_xid;
} }
if (record_info == XLOG_XACT_COMMIT_PREPARED) else if (record_info == XLOG_XACT_COMMIT_PREPARED)
{ {
isCommit = true; isCommit = true;
recordXid = ((xl_xact_commit_prepared *) XLogRecGetData(record))->xid; recordXid = ((xl_xact_commit_prepared *) XLogRecGetData(record))->xid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment