0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 13:18:58 +02:00

ircd::db: Add a ctx::slice_usage_warning message for background task executions.

This commit is contained in:
Jason Volk 2018-12-19 14:06:08 -08:00
parent 605cce9ed1
commit df7e46722f

View file

@ -7547,6 +7547,14 @@ ircd::db::database::env::state::pool::operator()(task &&task)
task.arg,
};
const ctx::slice_usage_warning message
{
"'%s': pool:%s task:%p",
this->d.name,
ctx::name(p),
task.func
};
// Execute the task
task.func(task.arg);