0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 22:18:54 +02:00

ircd::db::prefetcher: Additional debuglog in shutdown sequence.

This commit is contained in:
Jason Volk 2022-07-02 18:21:24 -07:00
parent e2d1e0c3b2
commit 32d92b96ca
2 changed files with 16 additions and 1 deletions

View file

@ -561,6 +561,11 @@ ircd::db::prefetcher::prefetcher()
ircd::db::prefetcher::~prefetcher()
noexcept
{
log::debug
{
log, "Stopping prefetcher..."
};
while(!queue.empty())
{
log::warning

View file

@ -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);