Switch object states after sync
This commit is contained in:
+3
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user