Calculate data crc32c

This commit is contained in:
Vitaliy Filippov
2019-11-27 02:20:38 +03:00
parent 9568354d78
commit 74d8ea2f01
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -139,6 +139,7 @@ int blockstore::dequeue_write(blockstore_operation *op)
je->offset = op->offset;
je->len = op->len;
je->data_offset = journal.next_free;
je->crc32_data = crc32c(0, op->buf, op->len);
je->crc32 = je_crc32((journal_entry*)je);
journal.crc32_last = je->crc32;
prepare_journal_sector_write(journal, sqe1, cb);