[FEAT MERGE] Refactoring ObTimer to reduce the number of threads
This commit is contained in:
@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user