Switch object states after sync

This commit is contained in:
Vitaliy Filippov
2019-11-10 13:49:26 +03:00
parent 64185f7a1f
commit 7aabe11ef9
3 changed files with 46 additions and 22 deletions
+3 -4
View File
@@ -213,9 +213,9 @@ private:
uint64_t min_used_journal_sector, max_used_journal_sector;
// Sync
std::deque<obj_ver_id> sync_big_writes;
std::deque<obj_ver_id> sync_big_writes, sync_small_writes;
std::list<blockstore_operation*>::iterator in_progress_ptr;
int big_write_count, sync_state, prev_sync_count;
int sync_state, prev_sync_count;
};
class blockstore;
@@ -230,8 +230,7 @@ class blockstore
spp::sparse_hash_map<object_id, clean_entry, oid_hash> object_db;
std::map<obj_ver_id, dirty_entry> dirty_db;
std::list<blockstore_operation*> submit_queue;
std::deque<obj_ver_id> unsynced_big_writes;
int unsynced_small_writes = 0;
std::deque<obj_ver_id> unsynced_big_writes, unsynced_small_writes;
std::list<blockstore_operation*> in_progress_syncs;
uint32_t block_order, block_size;
uint64_t block_count;