mirror of
https://github.com/ShadowJonathan/conduit_toolbox.git
synced 2025-06-07 18:07:08 +03:00
fix opts default in rocksdb
This commit is contained in:
parent
daccce6031
commit
632ef87337
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ pub fn new_conn<P: AsRef<Path>>(path: P) -> Result<RocksDB, rocksdb::Error> {
|
|||
&opts,
|
||||
&path,
|
||||
cfs.iter().map(|name| {
|
||||
let mut options = rocksdb::Options::default();
|
||||
let mut options = opts.clone();
|
||||
let prefix_extractor = rocksdb::SliceTransform::create_fixed_prefix(1);
|
||||
options.set_prefix_extractor(prefix_extractor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue