mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 13:00:33 +01:00
ircd::db: Fix prefetcher inhibiting some clean shutdowns.
This commit is contained in:
parent
fe55c05f11
commit
cd15c17499
1 changed files with 4 additions and 1 deletions
|
@ -890,7 +890,10 @@ ircd::db::prefetcher::wait_pending()
|
||||||
|
|
||||||
dock.wait([this, &fetched_target]() noexcept
|
dock.wait([this, &fetched_target]() noexcept
|
||||||
{
|
{
|
||||||
return this->ticker->fetched >= fetched_target;
|
return false
|
||||||
|
|| this->ticker->fetched >= fetched_target
|
||||||
|
|| !request_workers
|
||||||
|
;
|
||||||
});
|
});
|
||||||
|
|
||||||
assert(fetched_target >= fetched_counter);
|
assert(fetched_target >= fetched_counter);
|
||||||
|
|
Loading…
Add table
Reference in a new issue