Confirm calling Options.increase_parallelism works on all platforms...

master
Jordan Terrell 6 years ago
parent 47cd7ffe6b
commit 602a683646
  1. 11
      tests/test_rocksdb_options.rs

@ -28,3 +28,14 @@ fn test_set_num_levels() {
let _db = DB::open(&opts, &n).unwrap(); let _db = DB::open(&opts, &n).unwrap();
} }
} }
#[test]
fn test_increase_parallelism() {
let n = DBPath::new("_rust_rocksdb_test_increase_parallelism");
{
let mut opts = Options::default();
opts.create_if_missing(true);
opts.increase_parallelism(4);
let _db = DB::open(&opts, &n).unwrap();
}
}

Loading…
Cancel
Save