From 7ad17ea68ba91fe40914494dd323b4d6c928e712 Mon Sep 17 00:00:00 2001 From: Kaige Ye Date: Tue, 10 Aug 2021 11:37:52 +0800 Subject: [PATCH] fix duplicated threads registration --- storage/innobase/srv/srv0srv.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc index 44f878a3ea45..1b8f89b969b8 100644 --- a/storage/innobase/srv/srv0srv.cc +++ b/storage/innobase/srv/srv0srv.cc @@ -2804,11 +2804,7 @@ void srv_worker_thread() { ut_ad(!srv_read_only_mode); ut_a(srv_force_recovery < SRV_FORCE_NO_BACKGROUND); -#ifdef UNIV_PFS_THREAD - THD *thd = create_thd(false, true, true, srv_worker_thread_key.m_value); -#else THD *thd = create_thd(false, true, true, 0); -#endif rw_lock_x_lock(&purge_sys->latch); @@ -3052,11 +3048,7 @@ static void srv_purge_coordinator_suspend( void srv_purge_coordinator_thread() { srv_slot_t *slot; -#ifdef UNIV_PFS_THREAD - THD *thd = create_thd(false, true, true, srv_purge_thread_key.m_value); -#else THD *thd = create_thd(false, true, true, 0); -#endif rw_lock_x_lock(&purge_sys->latch);