Session pool control tracepoint
This commit is contained in:
1
deps/oblib/src/lib/utility/ob_tracepoint.h
vendored
1
deps/oblib/src/lib/utility/ob_tracepoint.h
vendored
@ -717,6 +717,7 @@ class EventTable
|
|||||||
EN_SESS_INFO_VERI_CLIENT_ID_ERROR = 1183,
|
EN_SESS_INFO_VERI_CLIENT_ID_ERROR = 1183,
|
||||||
EN_SESS_INFO_VERI_CONTROL_INFO_ERROR = 1184,
|
EN_SESS_INFO_VERI_CONTROL_INFO_ERROR = 1184,
|
||||||
EN_SESS_INFO_VERI_TXN_EXTRA_INFO_ERROR = 1185,
|
EN_SESS_INFO_VERI_TXN_EXTRA_INFO_ERROR = 1185,
|
||||||
|
EN_SESS_POOL_MGR_CTRL = 1186,
|
||||||
EN_ENABLE_NEWSORT_FORCE = 1200,
|
EN_ENABLE_NEWSORT_FORCE = 1200,
|
||||||
|
|
||||||
// Transaction // 2001 - 2100
|
// Transaction // 2001 - 2100
|
||||||
|
|||||||
@ -160,8 +160,11 @@ void ObTenantSQLSessionMgr::free_session(ObSQLSessionInfo *session)
|
|||||||
{
|
{
|
||||||
int ret = OB_SUCCESS;
|
int ret = OB_SUCCESS;
|
||||||
SessionPool *session_pool = NULL;
|
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()) &&
|
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()) {
|
if (session->is_use_inner_allocator() && !session->is_tenant_killed()) {
|
||||||
session_pool = &session_pool_;
|
session_pool = &session_pool_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user