Fix sync confirmations and some pipeline-stall bugs

This commit is contained in:
Vitaliy Filippov
2019-11-27 18:07:38 +03:00
parent 78807eb244
commit e2b91968c5
7 changed files with 72 additions and 49 deletions
+2 -2
View File
@@ -55,9 +55,9 @@ int blockstore_journal_check_t::check_available(blockstore_operation *op, int re
}
if (!right_dir && next_pos >= bs->journal.used_start-512)
{
// No space in the journal. Wait for it.
// No space in the journal. Wait until used_start changes.
op->wait_for = WAIT_JOURNAL;
op->wait_detail = next_pos;
op->wait_detail = bs->journal.used_start;
return 0;
}
return 1;