tikv / rust-rocksdb

rust wrapper for rocksdb
Apache License 2.0
276 stars 155 forks source link

The variable 'cf_opts' is not used by 'DB::open_cf' #710

Open iiibui opened 2 years ago

iiibui commented 2 years ago

https://github.com/tikv/rust-rocksdb/blob/d8b7ff8aee62aa9a406b64f7093049d62eeb9a1a/tests/cases/test_rocksdb_options.rs#L345-L374

DB::open_cf(opts, path.path().to_str().unwrap(), vec!["default"]).unwrap(); why not DB::open_cf(opts, path.path().to_str().unwrap(), vec![("default", cf_opts)]).unwrap();

tabokie commented 2 years ago

Good catch, feel free to file a fixing PR.

This particular issue could be easily detected by clippy, but there're too many of them and we never get the time to fix them.