Safe stop procedure

This commit is contained in:
Vitaliy Filippov
2019-11-25 01:29:07 +03:00
parent 50cf3667fa
commit be3015169f
5 changed files with 37 additions and 3 deletions
+1
View File
@@ -11,6 +11,7 @@ int blockstore::dequeue_sync(blockstore_operation *op)
{
if (op->sync_state == 0)
{
stop_sync_submitted = false;
op->sync_big_writes.swap(unsynced_big_writes);
op->sync_small_writes.swap(unsynced_small_writes);
if (op->sync_big_writes.size() > 0)