Implementing review feedback...

master
Jordan Terrell 6 years ago
parent d00e03f72a
commit ceb5744c51
  1. 2
      src/db.rs
  2. 7
      tests/test_column_family.rs

@ -679,7 +679,7 @@ impl DB {
DB::open_cf_descriptors(opts, path, cfs) DB::open_cf_descriptors(opts, path, cfs)
} }
/// Open a database with the given database options and column family names/options. /// Open a database with the given database options and column family descriptors.
pub fn open_cf_descriptors<P, I>( pub fn open_cf_descriptors<P, I>(
opts: &Options, opts: &Options,
path: P, path: P,

@ -100,12 +100,7 @@ fn test_can_open_db_with_results_of_list_cf() {
let db = DB::open(&opts, &n).unwrap(); let db = DB::open(&opts, &n).unwrap();
let opts = Options::default(); let opts = Options::default();
match db.create_cf("cf1", &opts) { assert!(db.create_cf("cf1", &opts).is_ok());
Ok(_db) => println!("cf1 created successfully"),
Err(e) => {
panic!("could not create column family: {}", e);
}
}
} }
{ {

Loading…
Cancel
Save