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:
parent
2b199ae3ed
commit
8340f005da
1 changed files with 16 additions and 1 deletions
17
ircd/db.cc
17
ircd/db.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue