Fix an idiotic bug leading to failed reads with -ERANGE with EC :D

This commit is contained in:
Vitaliy Filippov
2023-06-03 00:44:52 +03:00
parent 150968070f
commit 2c9a10d081
-4
View File
@@ -138,10 +138,6 @@ int blockstore_impl_t::dequeue_read(blockstore_op_t *read_op)
{
dirty_entry& dirty = dirty_it->second;
bool version_ok = !IS_IN_FLIGHT(dirty.state) && read_op->version >= dirty_it->first.version;
if (IS_SYNCED(dirty.state))
{
version_ok = true;
}
if (version_ok)
{
if (IS_DELETE(dirty.state))