aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-07-29 17:16:59 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-07-29 17:19:43 +0300
commit60d931827b0c37fbce74d04e45d0220d57ddd06a (patch)
treed452120ec782d9cab28bc1db405a4795bd6e4d1c
parente74e0906fad5fcdcc807d4655cdc69dded5d58f2 (diff)
downloadpostgresql-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.c2
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;