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

Commit 5b7f1f5

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 3b558ac commit 5b7f1f5

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
@@ -5489,7 +5489,7 @@ recoveryStopsBefore(XLogRecord *record)
54895489
isCommit = true;
54905490
recordXid = record->xl_xid;
54915491
}
5492-
if (record_info == XLOG_XACT_COMMIT_PREPARED)
5492+
else if (record_info == XLOG_XACT_COMMIT_PREPARED)
54935493
{
54945494
isCommit = true;
54955495
recordXid = ((xl_xact_commit_prepared *) XLogRecGetData(record))->xid;

0 commit comments

Comments
 (0)