[CP] fix mini merge scheduling when sstable count is not safe in tablet

This commit is contained in:
Fengjingkun
2023-09-21 09:44:34 +00:00
committed by ob-robot
parent a69698b5ce
commit 03d4c3e84b
2 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ int ObPartitionMergePolicy::get_medium_merge_tables(
bool ObPartitionMergePolicy::is_sstable_count_not_safe(const int64_t minor_table_cnt)
{
return minor_table_cnt >= MAX_SSTABLE_CNT_IN_STORAGE;
return minor_table_cnt + 1 /*major_sstable*/ >= MAX_SSTABLE_CNT_IN_STORAGE;
}
int ObPartitionMergePolicy::get_mini_merge_tables(