mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
more fixes of scheduler interface changes
This commit is contained in:
parent
b173e14937
commit
1d6945a017
2 changed files with 10 additions and 14 deletions
|
@ -149,10 +149,6 @@ void one_thread_scheduler()
|
|||
thd_scheduler::thd_scheduler()
|
||||
: m_psi(NULL), data(NULL)
|
||||
{
|
||||
#ifndef DBUG_OFF
|
||||
dbug_explain[0]= '\0';
|
||||
set_explain= FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -160,16 +156,6 @@ thd_scheduler::~thd_scheduler()
|
|||
{
|
||||
}
|
||||
|
||||
void* thd_get_scheduler(THD *thd)
|
||||
{
|
||||
return thd->scheduler.data;
|
||||
}
|
||||
|
||||
PSI_thread* thd_get_psi(THD *thd)
|
||||
{
|
||||
return thd->scheduler.m_psi;
|
||||
}
|
||||
|
||||
static scheduler_functions *saved_thread_scheduler;
|
||||
static uint saved_thread_handling;
|
||||
|
||||
|
|
|
@ -217,6 +217,16 @@ bool foreign_key_prefix(Key *a, Key *b)
|
|||
** Thread specific functions
|
||||
****************************************************************************/
|
||||
|
||||
void* thd_get_scheduler(THD *thd)
|
||||
{
|
||||
return thd->scheduler.data;
|
||||
}
|
||||
|
||||
PSI_thread* thd_get_psi(THD *thd)
|
||||
{
|
||||
return thd->scheduler.m_psi;
|
||||
}
|
||||
|
||||
/*
|
||||
The following functions form part of the C plugin API
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue