Wait for writes to complete before issuing an fsync in blockstore_sync

Also fix a dormant bug (OP_SYNC could clear unsynced_*_writes and not be added into syncs_in_progress)
This commit is contained in:
Vitaliy Filippov
2020-01-29 16:42:40 +03:00
parent dcc9e75c63
commit 1e286eed08
2 changed files with 64 additions and 51 deletions
+1
View File
@@ -163,6 +163,7 @@ struct blockstore_op_private_t
// Sync
std::vector<obj_ver_id> sync_big_writes, sync_small_writes;
int sync_small_checked, sync_big_checked;
std::list<blockstore_op_t*>::iterator in_progress_ptr;
int sync_state, prev_sync_count;
};