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:19:43 +0300 |
commit | 60d931827b0c37fbce74d04e45d0220d57ddd06a (patch) | |
tree | d452120ec782d9cab28bc1db405a4795bd6e4d1c | |
parent | e74e0906fad5fcdcc807d4655cdc69dded5d58f2 (diff) | |
download | postgresql-60d931827b0c37fbce74d04e45d0220d57ddd06a.tar.gz postgresql-60d931827b0c37fbce74d04e45d0220d57ddd06a.zip |
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 2bf49a8af8d..fe184bde3b9 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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; |