Session pool control tracepoint

This commit is contained in:
yaojing624
2023-07-11 09:12:44 +00:00
committed by ob-robot
parent 0942e662fc
commit 42a290cedb
2 changed files with 5 additions and 1 deletions

View File

@ -160,8 +160,11 @@ void ObTenantSQLSessionMgr::free_session(ObSQLSessionInfo *session)
{
int ret = OB_SUCCESS;
SessionPool *session_pool = NULL;
// add tracepoint for control session pool.
int64_t code = 0;
code = OB_E(EventTable::EN_SESS_POOL_MGR_CTRL) OB_SUCCESS;
if (ObTenantSQLSessionMgr::is_valid_tenant_id(session->get_login_tenant_id()) &&
session->can_release_to_pool()) {
session->can_release_to_pool() && code == OB_SUCCESS) {
if (session->is_use_inner_allocator() && !session->is_tenant_killed()) {
session_pool = &session_pool_;
}