Refuse to start with old journal version

This commit is contained in:
Vitaliy Filippov
2021-04-10 17:44:12 +03:00
parent c72fddd714
commit f684d9101a
3 changed files with 19 additions and 4 deletions
+1
View File
@@ -602,6 +602,7 @@ resume_1:
.size = sizeof(journal_entry_start),
.reserved = 0,
.journal_start = new_trim_pos,
.version = JOURNAL_VERSION,
};
((journal_entry_start*)flusher->journal_superblock)->crc32 = je_crc32((journal_entry*)flusher->journal_superblock);
data->iov = (struct iovec){ flusher->journal_superblock, bs->journal_block_size };