fix some glitches about ObTimerService

This commit is contained in:
obdev
2025-02-11 21:16:31 +00:00
committed by ob-robot
parent 4a66f85877
commit 209518ea0f
20 changed files with 104 additions and 79 deletions

View File

@ -403,11 +403,6 @@ int ObPlanCache::init(int64_t hash_bucket, uint64_t tenant_id)
SQL_PC_LOG(WARN, "failed to init PlanCache", K(ret));
} else if (OB_FAIL(TG_CREATE_TENANT(lib::TGDefIDs::PlanCacheEvict, tg_id_))) {
LOG_WARN("failed to create tg", K(ret));
} else {
// just for unittest test_create_executor, do not set error code
NEW_AND_SET_TIMER_SERVICE(tenant_id);
}
if (OB_FAIL(ret)) {
} else if (OB_FAIL(TG_START(tg_id_))) {
LOG_WARN("failed to start tg", K(ret));
} else if (OB_FAIL(TG_SCHEDULE(tg_id_, evict_task_, GCONF.plan_cache_evict_interval, true))) {