mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
ircd::db: Add a ctx::slice_usage_warning message for background task executions.
This commit is contained in:
parent
605cce9ed1
commit
df7e46722f
1 changed files with 8 additions and 0 deletions
|
@ -7547,6 +7547,14 @@ ircd::db::database::env::state::pool::operator()(task &&task)
|
||||||
task.arg,
|
task.arg,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const ctx::slice_usage_warning message
|
||||||
|
{
|
||||||
|
"'%s': pool:%s task:%p",
|
||||||
|
this->d.name,
|
||||||
|
ctx::name(p),
|
||||||
|
task.func
|
||||||
|
};
|
||||||
|
|
||||||
// Execute the task
|
// Execute the task
|
||||||
task.func(task.arg);
|
task.func(task.arg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue