diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-07-29 17:16:59 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-07-29 17:26:36 +0300 |
commit | 5b7f1f52107941a819cdf587216b86081cd967e2 (patch) | |
tree | 5ca73379a01737c7ccc7b667e8cc789a74f9ec94 | |
parent | 3b558ac830b2c30b50b9993c505e3061cbda036c (diff) |
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.
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 040205760f7..7eea5fabaf5 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5489,7 +5489,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; |