[CP] do not put ddl sstable into table store when major sstable exist

This commit is contained in:
simonjoylet 2023-11-30 04:11:44 +00:00 committed by ob-robot
parent 2f7cc4ce1f
commit f4f2a850c7

View File

@ -1578,7 +1578,7 @@ int ObTabletTableStore::build_ddl_sstables(
}
}
if (OB_SUCC(ret) && !ddl_dump_sstables.empty()) {
if (OB_SUCC(ret) && !ddl_dump_sstables.empty() && major_tables_.empty()) {
if (OB_FAIL(ddl_sstables_.init(allocator, ddl_dump_sstables))) {
LOG_WARN("failed to init ddl_sstables", K(ret));
}