[CP] Auto Refresh/Broadcast Tablet Location

Co-authored-by: LeonChaoHi <15201161716@163.com>
This commit is contained in:
tino247
2023-11-28 07:42:23 +00:00
committed by ob-robot
parent 0f9db0eb53
commit fa81dbabe1
35 changed files with 2746 additions and 65 deletions

View File

@ -192,8 +192,9 @@ TEST_F(TestTabletAutoincMgr, test_lob_tablet_autoinc_location_cache)
ASSERT_EQ(OB_SUCCESS, task.result_);
// restore old tablet ls cache
const bool update_only = false;
for (int64_t i = 0; i < old_tablet_ls_cache.count(); i++) {
ASSERT_EQ(OB_SUCCESS, tablet_ls_service->update_cache_(old_tablet_ls_cache.at(i)));
ASSERT_EQ(OB_SUCCESS, tablet_ls_service->update_cache(old_tablet_ls_cache.at(i), update_only));
}
// remove source ls and clear src ls cache