fix prefix iterator test

master
Tyler Neely 7 years ago
parent dd17defa66
commit f6a27ae221
No known key found for this signature in database
GPG Key ID: 23E6C4FBEAE5E4E3
  1. 4
      tests/test_iterator.rs

@ -163,8 +163,10 @@ pub fn test_prefix_iterator() {
let b1: Box<[u8]> = key(b"bbb1"); let b1: Box<[u8]> = key(b"bbb1");
let b2: Box<[u8]> = key(b"bbb2"); let b2: Box<[u8]> = key(b"bbb2");
let mut opts = Options::default();
let prefix_extractor = rocksdb::SliceTransform::create_fixed_prefix(3); let prefix_extractor = rocksdb::SliceTransform::create_fixed_prefix(3);
let mut opts = Options::default();
opts.create_if_missing(true);
opts.set_prefix_extractor(prefix_extractor); opts.set_prefix_extractor(prefix_extractor);
let db = DB::open(&opts, path).unwrap(); let db = DB::open(&opts, path).unwrap();

Loading…
Cancel
Save