Fix some extra bugs and it seems now it is even able to trim the journal

This commit is contained in:
Vitaliy Filippov
2019-11-22 12:08:44 +03:00
parent 7e87290fca
commit 82a2b8e7d9
5 changed files with 40 additions and 18 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ struct journal_t
journal_sector_info_t *sector_info;
uint64_t sector_count;
int cur_sector = 0;
int in_sector_pos = 512; // no free space because sector is initially inmapped
int in_sector_pos = 512; // no free space because sector is initially unmapped
// Used sector map
// May use ~ 80 MB per 1 GB of used journal space in the worst case