From 26d80fca0921b766e5a97c04ea7d0ffd5ba510c4 Mon Sep 17 00:00:00 2001 From: godyangfight Date: Thu, 8 Feb 2024 14:33:25 +0000 Subject: [PATCH] [CP] Fix using wrong cluster version bug. --- src/storage/high_availability/ob_storage_ha_tablet_builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/high_availability/ob_storage_ha_tablet_builder.cpp b/src/storage/high_availability/ob_storage_ha_tablet_builder.cpp index e3b97b6353..d450a06e65 100644 --- a/src/storage/high_availability/ob_storage_ha_tablet_builder.cpp +++ b/src/storage/high_availability/ob_storage_ha_tablet_builder.cpp @@ -941,7 +941,7 @@ int ObStorageHATabletsBuilder::get_minor_scn_range_( if (OB_SUCC(ret)) { //need copy src all minor sstables for tablet meta merge, do not need calculate sstable version range. //here set end scn just for compatible - if (GET_MIN_CLUSTER_VERSION() <= CLUSTER_VERSION_4_2_1_1) { + if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_4_2_2_0) { scn_range.start_scn_ = ObTabletMeta::INIT_CLOG_CHECKPOINT_SCN; scn_range.end_scn_ = sstables.empty() ? tablet->get_tablet_meta().clog_checkpoint_scn_ : sstables.at(0).get_sstable()->get_start_scn(); } else {