Die when journal_sector_buffer_count is too small

This commit is contained in:
Vitaliy Filippov
2020-05-24 17:26:47 +03:00
parent 36595eb669
commit 53f6aba3e6
3 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ struct blockstore_journal_check_t
{
blockstore_impl_t *bs;
uint64_t next_pos, next_sector, next_in_pos;
int sectors_required;
int sectors_required, first_sector;
bool right_dir; // writing to the end or the beginning of the ring buffer
blockstore_journal_check_t(blockstore_impl_t *bs);