mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +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
|
||||
{
|
||||
return this->ticker->fetched >= fetched_target;
|
||||
return false
|
||||
|| this->ticker->fetched >= fetched_target
|
||||
|| !request_workers
|
||||
;
|
||||
});
|
||||
|
||||
assert(fetched_target >= fetched_counter);
|
||||
|
|
Loading…
Reference in a new issue