From b32bc96da59b0f25af1f7e65d1696a1e0b2000ca Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 16 Nov 2022 09:07:11 +0000 Subject: [PATCH] [CP] fix add minor tables in rebuild task --- src/storage/tablet/ob_tablet_table_store.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/tablet/ob_tablet_table_store.cpp b/src/storage/tablet/ob_tablet_table_store.cpp index dbec69f93a..4241e7e39e 100644 --- a/src/storage/tablet/ob_tablet_table_store.cpp +++ b/src/storage/tablet/ob_tablet_table_store.cpp @@ -790,10 +790,10 @@ int ObTabletTableStore::build_minor_tables( ObSSTable *sstable = static_cast(table); ObSSTable *new_sstable = static_cast(new_table); if (sstable->get_meta().get_basic_meta().max_merged_trans_version_ - < new_sstable->get_meta().get_basic_meta().max_merged_trans_version_) { + <= new_sstable->get_meta().get_basic_meta().max_merged_trans_version_) { need_add = false; - LOG_INFO("new sstable max merge trans version not equal to old sstable, " - "need add new sstable when table key is same", KPC(sstable), KPC(new_sstable)); + LOG_INFO("new table's max merge trans version is not less than the old table, " + "add new table when table key is same", KPC(sstable), KPC(new_sstable)); } else { ret = OB_NO_NEED_MERGE; LOG_WARN("new table with old max merged trans version, no need to merge", K(ret), KPC(sstable), KPC(new_sstable));