Fix used journal sector tracking again

This commit is contained in:
Vitaliy Filippov
2019-11-27 01:20:09 +03:00
parent 6ac1d5db08
commit 1080cbdf12
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ void blockstore::handle_write_event(ring_data_t *data, blockstore_operation *op)
journal.sector_info[s-1].usage_count--;
if (s == op->max_used_journal_sector)
break;
s = (s + 1) % journal.sector_count;
s = 1 + s % journal.sector_count;
}
op->min_used_journal_sector = op->max_used_journal_sector = 0;
}