From df7e46722fc2d6db94449c1e6a92a478a79bfefa Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 19 Dec 2018 14:06:08 -0800 Subject: [PATCH] ircd::db: Add a ctx::slice_usage_warning message for background task executions. --- ircd/db.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ircd/db.cc b/ircd/db.cc index 273b82df5..7c31066de 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -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);