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.
This commit is contained in:
Heikki Linnakangas 2014-07-29 17:16:59 +03:00
parent e74e0906fa
commit 60d931827b
1 changed files with 1 additions and 1 deletions

View File

@ -5515,7 +5515,7 @@ recoveryStopsBefore(XLogRecord *record)
isCommit = true;
recordXid = record->xl_xid;
}
if (record_info == XLOG_XACT_COMMIT_PREPARED)
else if (record_info == XLOG_XACT_COMMIT_PREPARED)
{
isCommit = true;
recordXid = ((xl_xact_commit_prepared *) XLogRecGetData(record))->xid;