[CP] fix session lock leak when set dbms_monitor.ob_session_trace_disable

This commit is contained in:
obdev
2023-07-05 03:18:08 +00:00
committed by ob-robot
parent cbeb742405
commit 83f363ceba

View File

@ -45,11 +45,12 @@ bool ObFLTResetSessOp::operator()(sql::ObSQLSessionMgr::Key key, ObSQLSessionInf
}
} else if (sess_info->is_coninfo_set_by_sess()) {
// already has, do nothing
(void)sess_info->unlock_thread_data();
} else {
sess_info->set_send_control_info(false);
sess_info->get_control_info().reset();
(void)sess_info->unlock_thread_data();
}
(void)sess_info->unlock_thread_data();
(void)sess_info->unlock_query();
}
}