提交 0d186e59 编写于 作者: O obdev 提交者: OB-robot

add defensive code in get_read_tables

上级 2748d900
......@@ -528,6 +528,10 @@ int ObTabletTableStore::calculate_read_tables(
LOG_WARN("no base table found for specific version",
K(ret), K(snapshot_version), K(allow_no_ready_read), K(PRINT_TS(*this)));
}
} else if (!major_tables_.empty()) {
ret = OB_SNAPSHOT_DISCARDED;
LOG_WARN("exist major table, allow_no_ready_read can not be true",
K(ret), K(snapshot_version), K(allow_no_ready_read), K(PRINT_TS(*this)));
} else if (!minor_tables_.empty() && OB_FAIL(iterator.add_tables(minor_tables_.array_, minor_tables_.count_))) {
LOG_WARN("failed to add all minor tables to iterator", K(ret));
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册