提交 ba2d7ae2 编写于 作者: D dt0 提交者: wangzelin.wzl

add log entry check_integrity compat

上级 85c2f0ab
......@@ -999,6 +999,11 @@ int ObArCLogSplitEngine::fetch_log_(const ObPGKey& pg_key, ObArchiveLogCursor& l
int64_t pos = 0;
if (OB_FAIL(log_entry.deserialize(res.buf_, res.data_len_, pos))) {
ARCHIVE_LOG(WARN, "failed to deserialize log_entry", K(ret), K(pg_key), K(log_cursor), K(res));
} else if (OB_UNLIKELY(!log_entry.check_integrity(true /*ignore_batch_commited*/))) {
// NB: batch_commited is for one phase commit, which is forbidden,
// but for cluster upgraded from lower version, it may be still open.
ret = OB_INVALID_DATA;
ARCHIVE_LOG(ERROR, "invalid log entry", KR(ret), K(pg_key), K(log_entry));
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册