提交 0dfdfca1 编写于 作者: D dt0 提交者: LINGuanRen

Return CHECKSUM_ERROR when archive file is corrupt

上级 4a8e137b
......@@ -456,7 +456,7 @@ int ObArchiveEntryIterator::extract_block_meta_()
if (OB_FAIL(meta.deserialize(buf_cur_, buf_end_ - buf_cur_, pos))) {
handle_serialize_ret_(ret);
} else if (!meta.check_magic_number(meta.magic_) || !meta.check_meta_checksum()) {
ret = OB_ITER_END;
ret = OB_CHECKSUM_ERROR;
ARCHIVE_LOG(WARN, "archive block meta is not valid", KR(ret), K(meta), KPC(this));
} else if (buf_end_ - buf_cur_ < meta.get_total_len()) {
ret = OB_BUF_NOT_ENOUGH;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册