fix plan cache not flush when statistic info changed
This commit is contained in:
@ -413,6 +413,7 @@ int ObOptStatManager::handle_refresh_stat_task(const obrpc::ObUpdateStatCacheArg
|
||||
int ObOptStatManager::invalidate_plan(const uint64_t tenant_id, const uint64_t table_id)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
MTL_SWITCH(tenant_id) {
|
||||
sql::ObPlanCache *pc = MTL(sql::ObPlanCache*);
|
||||
|
||||
if (OB_FAIL(pc->evict_plan(table_id))) {
|
||||
@ -420,6 +421,7 @@ int ObOptStatManager::invalidate_plan(const uint64_t tenant_id, const uint64_t t
|
||||
// use OB_SQL_PC_NOT_EXIST represent evict plan failed
|
||||
ret = OB_SQL_PC_NOT_EXIST;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user