Fix journal space check (do not overwrite the beginning of the journal)

This commit is contained in:
Vitaliy Filippov
2019-11-27 11:35:11 +03:00
parent ffff742078
commit 78807eb244
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -137,6 +137,7 @@ struct blockstore_journal_check_t
blockstore *bs;
uint64_t next_pos, next_sector, next_in_pos;
int sectors_required;
bool right_dir; // writing to the end or the beginning of the ring buffer
blockstore_journal_check_t(blockstore *bs);
int check_available(blockstore_operation *op, int required, int size, int data_after);