Prevent two parallel flushes of the same object

This commit is contained in:
Vitaliy Filippov
2019-11-15 13:58:35 +03:00
parent 71194f014a
commit c38c8ab029
4 changed files with 83 additions and 21 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ void blockstore::handle_stable_event(ring_data_t *data, blockstore_operation *op
}
dirty_it--;
} while (dirty_it != dirty_db.begin() && dirty_it->first.oid == v->oid);
flusher->flush_queue.push_back(*v);
flusher->queue_flush(*v);
}
}
// Acknowledge op