Wait for free space again, but count on big_write flushes instead of just flusher activity

This commit is contained in:
Vitaliy Filippov
2023-05-10 01:51:02 +03:00
parent f4c6765522
commit a409598b16
5 changed files with 29 additions and 0 deletions
+5
View File
@@ -201,6 +201,11 @@ void blockstore_impl_t::erase_dirty(blockstore_dirty_db_t::iterator dirty_start,
}
while (1)
{
if ((IS_BIG_WRITE(dirty_it->second.state) || IS_DELETE(dirty_it->second.state)) &&
IS_STABLE(dirty_it->second.state))
{
big_to_flush--;
}
if (IS_BIG_WRITE(dirty_it->second.state) && dirty_it->second.location != clean_loc &&
dirty_it->second.location != UINT64_MAX)
{