0
0
Fork 0
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:
Jason Volk 2022-07-08 17:46:35 -07:00
parent fe55c05f11
commit cd15c17499

View file

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