[FEAT MERGE] Refactoring ObTimer to reduce the number of threads

This commit is contained in:
obdev
2024-11-21 03:45:15 +00:00
committed by ob-robot
parent 21fe0da3f7
commit 0e58dbeeb5
72 changed files with 929543 additions and 278076 deletions

View File

@ -424,6 +424,11 @@ 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))) {