!88 use wrong log type during log parsing

Merge pull request !88 from meimeidtt/patch1
This commit is contained in:
opengauss-bot
2020-08-07 17:07:00 +08:00
committed by Gitee

View File

@ -428,7 +428,7 @@ XLogRecParseState* xact_xlog_abort_parse_to_block(XLogReaderState* record, XLogR
xl_xact_abort* xlrec = NULL;
int nsubxacts = 0;
if (info == XLOG_XACT_COMMIT) {
if (info == XLOG_XACT_ABORT) {
xlrec = (xl_xact_abort*)XLogRecGetData(record);
} else {
xl_xact_abort_prepared* xlrecpre = (xl_xact_abort_prepared*)XLogRecGetData(record);