Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 60d9318

Browse files
committed
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.
1 parent e74e090 commit 60d9318

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5515,7 +5515,7 @@ recoveryStopsBefore(XLogRecord *record)
55155515
isCommit = true;
55165516
recordXid = record->xl_xid;
55175517
}
5518-
if (record_info == XLOG_XACT_COMMIT_PREPARED)
5518+
else if (record_info == XLOG_XACT_COMMIT_PREPARED)
55195519
{
55205520
isCommit = true;
55215521
recordXid = ((xl_xact_commit_prepared *) XLogRecGetData(record))->xid;

0 commit comments

Comments
 (0)