Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin committed Mar 10, 2021
1 parent 441834e commit a6b5366
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_column_family.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ fn test_column_family() {
fn test_multi_threaded_column_family() {
let n = DBPath::new("_rust_rocksdb_cftest");

// should be able to create column families
// Should be able to create column families without a mutable reference
// to the db
{
let mut opts = Options::default();
opts.create_if_missing(true);
opts.set_merge_operator_associative("test operator", test_provided_merge);
let db = DB::open_cf_multi_threaded(&opts, &n, None::<&str>).unwrap();
let opts = Options::default();

match db.create_cf_multi_threaded("cf1", &opts) {
Ok(()) => println!("cf1 created successfully"),
Err(e) => {
Expand All @@ -113,7 +113,8 @@ fn test_multi_threaded_column_family() {

test_cf_common(&n);

// should be able to drop a cf
// Should be able to drop column families without a mutable reference
// to the db
{
let db = DB::open_cf_multi_threaded(&Options::default(), &n, &["cf1"]).unwrap();
match db.drop_cf_multi_threaded("cf1") {
Expand Down

0 comments on commit a6b5366

Please sign in to comment.