mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
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:
parent
e74e0906fa
commit
60d931827b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user