Fix PG state comparison leading to unclean PGs not flushing

(a & b == b) -> ((a & b) == b) !
This commit is contained in:
Vitaliy Filippov
2020-05-01 12:56:46 +03:00
parent bd0fe6e4cc
commit cd87333091
4 changed files with 20 additions and 16 deletions
+3 -1
View File
@@ -40,7 +40,9 @@ int blockstore_impl_t::dequeue_rollback(blockstore_op_t *op)
if (!IS_SYNCED(dirty_it->second.state) ||
IS_STABLE(dirty_it->second.state))
{
goto bad_op;
op->retval = -EBUSY;
FINISH_OP(op);
return 1;
}
if (dirty_it == dirty_db.begin())
{