Parse empty meta_format in superblock as v2 (fix updating from 2.x)
This commit is contained in:
@@ -70,6 +70,7 @@ struct bs_test_t
|
||||
config["log_level"] = "10";
|
||||
config["data_csum_type"] = "crc32c";
|
||||
config["csum_block_size"] = "4096";
|
||||
config["meta_format"] = "3";
|
||||
}
|
||||
|
||||
void init()
|
||||
|
||||
@@ -122,7 +122,7 @@ void _test_init(blockstore_disk_t & dsk, bool csum, std::function<void(std::map<
|
||||
dsk.meta_fd = 1;
|
||||
dsk.journal_fd = 2;
|
||||
dsk.disable_journal_fsync = dsk.disable_meta_fsync = true;
|
||||
dsk.calc_lengths();
|
||||
dsk.calc_lengths(true);
|
||||
}
|
||||
|
||||
void test_mvcc(bool csum)
|
||||
@@ -1169,7 +1169,7 @@ void test_full_alloc()
|
||||
dsk.data_device = "data";
|
||||
dsk.meta_device = "meta";
|
||||
dsk.journal_device = "journal";
|
||||
dsk.calc_lengths();
|
||||
dsk.calc_lengths(true);
|
||||
std::vector<uint8_t> buffer_area(dsk.journal_device_size);
|
||||
|
||||
blockstore_heap_t heap(&dsk, buffer_area.data());
|
||||
|
||||
Reference in New Issue
Block a user