Fix sparse reads using bitmap, fix journal replay (we could sometimes lose its end)

This commit is contained in:
Vitaliy Filippov
2020-01-12 23:38:33 +03:00
parent 5739b02de8
commit 36d8c8724f
5 changed files with 33 additions and 18 deletions
+2
View File
@@ -101,6 +101,8 @@ int blockstore_impl_t::continue_sync(blockstore_op_t *op)
#endif
je->oid = it->oid;
je->version = it->version;
je->offset = dirty_db[*it].offset;
je->len = dirty_db[*it].len;
je->location = dirty_db[*it].location;
je->crc32 = je_crc32((journal_entry*)je);
journal.crc32_last = je->crc32;