Use std::vector for the blockstore submission queue

This commit is contained in:
Vitaliy Filippov
2021-03-08 17:04:10 +03:00
parent 0d8b5e2ef9
commit 36c935ace6
3 changed files with 32 additions and 39 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ class blockstore_impl_t
blockstore_clean_db_t clean_db;
uint8_t *clean_bitmap = NULL;
blockstore_dirty_db_t dirty_db;
std::list<blockstore_op_t*> submit_queue; // FIXME: funny thing is that vector is better here
std::vector<blockstore_op_t*> submit_queue;
std::vector<obj_ver_id> unsynced_big_writes, unsynced_small_writes;
allocator *data_alloc = NULL;
uint8_t *zero_object;