mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd::db::prefetcher: Additional debuglog in shutdown sequence.
This commit is contained in:
parent
e2d1e0c3b2
commit
32d92b96ca
2 changed files with 16 additions and 1 deletions
|
@ -561,6 +561,11 @@ ircd::db::prefetcher::prefetcher()
|
|||
ircd::db::prefetcher::~prefetcher()
|
||||
noexcept
|
||||
{
|
||||
log::debug
|
||||
{
|
||||
log, "Stopping prefetcher..."
|
||||
};
|
||||
|
||||
while(!queue.empty())
|
||||
{
|
||||
log::warning
|
||||
|
|
|
@ -1341,7 +1341,17 @@ noexcept try
|
|||
// prefetcher::cancel() only removes requests from its queue, but if
|
||||
// a prefetch request from this database is in flight that is bad; so
|
||||
// we wait until the unit has completed its pending requests.
|
||||
prefetcher->wait_pending();
|
||||
const size_t waited
|
||||
{
|
||||
prefetcher->wait_pending()
|
||||
};
|
||||
|
||||
log::debug
|
||||
{
|
||||
log, "[%s] cleared %zu from prefetcher.",
|
||||
name,
|
||||
waited,
|
||||
};
|
||||
}
|
||||
|
||||
bgcancel(*this, true);
|
||||
|
|
Loading…
Reference in a new issue