0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 00:34:18 +01:00

ircd::db: Use terminate() on the request pool on ~init(); log messages.

This commit is contained in:
Jason Volk 2018-08-28 11:51:36 -07:00
parent 2b199ae3ed
commit 8340f005da

View file

@ -137,8 +137,23 @@ ircd::db::init::init()
ircd::db::init::~init()
noexcept
{
request.interrupt();
if(request.active())
log::warning
{
log, "Terminating %zu active of %zu client request contexts; %zu pending; %zu queued",
request.active(),
request.size(),
request.pending(),
request.queued()
};
request.terminate();
request.join();
log::debug
{
log, "All contexts joined; all requests are clear."
};
}
void