From 602a68364693574d645cb264a13d559b3f91445b Mon Sep 17 00:00:00 2001 From: Jordan Terrell Date: Wed, 13 Feb 2019 06:25:02 -0600 Subject: [PATCH] Confirm calling Options.increase_parallelism works on all platforms... --- tests/test_rocksdb_options.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_rocksdb_options.rs b/tests/test_rocksdb_options.rs index 56a77b8..bf2853e 100644 --- a/tests/test_rocksdb_options.rs +++ b/tests/test_rocksdb_options.rs @@ -28,3 +28,14 @@ fn test_set_num_levels() { 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(); + } +}