diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 2bf49a8af8..fe184bde3b 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;