Fix journal space_check incorrectly checking for space at the beginning

test-fix-ec-unknown-state-51
Vitaliy Filippov 2024-02-20 19:40:56 +03:00
parent f87964861d
commit c6406d67fc
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ int blockstore_journal_check_t::check_available(blockstore_op_t *op, int entries
if (data_after > 0)
{
next_pos = next_pos + data_after;
if (next_pos > bs->journal.len)
if (next_pos >= bs->journal.len)
{
if (right_dir)
next_pos = bs->journal.block_size + data_after;