420510 {
420511 DatabaseHeader header;
420512 header.iteration = source.Read<
uint64_t>();
420513 header.meta_block = source.Read<
idx_t>();
420514 header.free_list = source.Read<
idx_t>();
420515 header.block_count = source.Read<
uint64_t>();
420516 header.block_alloc_size = source.Read<
idx_t>();
420517
420518
420519 if (!header.block_alloc_size) {
420520 header.block_alloc_size = DEFAULT_BLOCK_ALLOC_SIZE;
420521 }
420522
420523 header.vector_size = source.Read<
idx_t>();
420524 if (!header.vector_size) {
420525
420526 header.vector_size = DEFAULT_STANDARD_VECTOR_SIZE;
420527 }
420528 if (header.vector_size != STANDARD_VECTOR_SIZE) {
420529 throw IOException("Cannot read database file: DuckDB's compiled vector size is %llu bytes, but the file has a "
420530 "vector size of %llu bytes.",
420531 STANDARD_VECTOR_SIZE, header.vector_size);
420532 }
420533
420534
420535 header.serialization_compatibility = main_header.version_number == 64 ? 1 : source.Read<
idx_t>();
420536
420537 return header;
420538}