enable the paranoid-checks options in debug mode

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-26 04:47:07 +00:00 committed by June Clementine Strawberry
parent d244b4438e
commit 5edc79ec47

View file

@ -72,6 +72,13 @@ fn descriptor_cf_options(
opts.set_options_from_string("{{arena_block_size=2097152;}}")
.map_err(map_err)?;
#[cfg(debug_assertions)]
opts.set_options_from_string(
"{{paranoid_checks=true;paranoid_file_checks=true;force_consistency_checks=true;\
verify_sst_unique_id_in_manifest=true;}}",
)
.map_err(map_err)?;
Ok(opts)
}