fix: core at calling get_tid()
This commit is contained in:
@ -126,7 +126,7 @@ int64_t ObRsReentrantThread::get_last_run_timestamp() const
|
||||
void ObRsReentrantThread::check_alert(const ObRsReentrantThread &thread)
|
||||
{
|
||||
if (thread.need_monitor_check()) {
|
||||
const pid_t thread_id = thread.get_tid();
|
||||
const pid_t thread_id = syscall(__NR_gettid); // only called by thread self
|
||||
const char *thread_name = thread.get_thread_name();
|
||||
int64_t last_run_timestamp = thread.get_last_run_timestamp();
|
||||
int64_t last_run_interval = ObTimeUtility::current_time() - last_run_timestamp;
|
||||
|
||||
Reference in New Issue
Block a user