bump the number of allowed immutable memtables by 1, to allow for greater flood protection

this should probably not be applied if you have rocksdb_atomic_flush = false (the default)
This commit is contained in:
Jacob Taylor 2025-05-14 06:53:00 -07:00
parent dce194fa7f
commit faf747ef8d

View file

@ -29,7 +29,7 @@ fn descriptor_cf_options(
set_table_options(&mut opts, &desc, cache)?; set_table_options(&mut opts, &desc, cache)?;
opts.set_min_write_buffer_number(1); opts.set_min_write_buffer_number(1);
opts.set_max_write_buffer_number(2); opts.set_max_write_buffer_number(3);
opts.set_write_buffer_size(desc.write_size); opts.set_write_buffer_size(desc.write_size);
opts.set_target_file_size_base(desc.file_size); opts.set_target_file_size_base(desc.file_size);