fix bug: plan cache core is caused by the plan cache diagnostic view.

This commit is contained in:
obdev
2024-02-08 00:17:48 +00:00
committed by ob-robot
parent 18c5dd94a0
commit f6090d6b30
8 changed files with 56 additions and 9 deletions

View File

@ -65,7 +65,8 @@ const char* ObCacheRefHandleMgr::handle_name(const CacheRefHandleID handle_id)
"plan_baseline_handle",
"tableapi_node_handle",
"sql_plan_handle",
"callstmt_handle"
"callstmt_handle",
"pc_diag_handle"
};
static_assert(sizeof(handle_names)/sizeof(const char*) == MAX_HANDLE, "invalid handle name array");
if (handle_id < MAX_HANDLE) {