Used journal sector tracking

This commit is contained in:
Vitaliy Filippov
2019-11-15 02:04:19 +03:00
parent f1e236c6e8
commit 0627dd0f5e
6 changed files with 18 additions and 1 deletions
+2
View File
@@ -78,6 +78,8 @@ int blockstore::continue_sync(blockstore_operation *op)
{
journal_entry_big_write *je = (journal_entry_big_write*)
prefill_single_journal_entry(journal, JE_BIG_WRITE, sizeof(journal_entry_big_write));
dirty_db[*it].journal_sector = journal.sector_info[journal.cur_sector].offset;
journal.used_sectors[journal.sector_info[journal.cur_sector].offset]++;
je->oid = it->oid;
je->version = it->version;
je->location = dirty_db[*it].location;