// And the configuration block.
if (!conf_block.empty()) {
- hdr.next_zstd_dictionary_offset_bytes = ftell(outfp);
- hdr.next_zstd_dictionary_length_bytes = conf_block.size();
+ hdr.conf_block_offset_bytes = ftell(outfp);
+ hdr.conf_block_length_bytes = conf_block.size();
fwrite(conf_block.data(), conf_block.size(), 1, outfp);
}
}
DatabaseBuilder db(conf_output.c_str(), owner, conf_block_size, existing_db.read_next_dictionary());
+ db.set_conf_block(conf_block);
Corpus *corpus = db.start_corpus(/*store_dir_times=*/true);
int root_fd = opendir_noatime(AT_FDCWD, conf_scan_root);