1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-24512 fixup: Remove after_task_callback

In commit ff5d306e29 we removed
dbug_after_task_callback but forgot to revert the rest of
commit bada05a883.
This commit is contained in:
Marko Mäkelä
2021-09-14 16:23:23 +03:00
parent f6717c4af6
commit 03e4cb2484
5 changed files with 4 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (C) 2019, 2020, MariaDB Corporation.
/* Copyright (C) 2019, 2021, MariaDB Corporation.
This program is free software; you can redistribute itand /or modify
it under the terms of the GNU General Public License as published by
@@ -21,21 +21,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/
namespace tpool
{
#ifndef DBUG_OFF
static callback_func_np after_task_callback;
void set_after_task_callback(callback_func_np cb)
{
after_task_callback= cb;
}
void execute_after_task_callback()
{
if (after_task_callback)
after_task_callback();
}
#endif
task::task(callback_func func, void* arg, task_group* group) :
m_func(func), m_arg(arg), m_group(group) {}
@@ -50,7 +35,6 @@ void execute_after_task_callback()
{
/* Execute directly. */
m_func(m_arg);
dbug_execute_after_task_callback();
release();
}
}