Merge pull request #120 from debris/tests_race_condition

Fixed race condition in tests
master
Tyler Neely 8 years ago committed by GitHub
commit c4ddbbc874
  1. 4
      src/lib.rs

@ -114,7 +114,7 @@ pub struct BlockBasedOptions {
/// use rocksdb::DBCompactionStyle; /// use rocksdb::DBCompactionStyle;
/// ///
/// fn badly_tuned_for_somebody_elses_disk() -> DB { /// fn badly_tuned_for_somebody_elses_disk() -> DB {
/// let path = "path/for/rocksdb/storage5"; /// let path = "path/for/rocksdb/storageX";
/// let mut opts = Options::default(); /// let mut opts = Options::default();
/// opts.create_if_missing(true); /// opts.create_if_missing(true);
/// opts.set_max_open_files(10000); /// opts.set_max_open_files(10000);
@ -150,7 +150,7 @@ pub struct Options {
/// ``` /// ```
/// use rocksdb::{DB, WriteBatch, WriteOptions}; /// use rocksdb::{DB, WriteBatch, WriteOptions};
/// ///
/// let db = DB::open_default("path/for/rocksdb/storage6").unwrap(); /// let db = DB::open_default("path/for/rocksdb/storageY").unwrap();
/// ///
/// let mut batch = WriteBatch::default(); /// let mut batch = WriteBatch::default();
/// batch.put(b"my key", b"my value"); /// batch.put(b"my key", b"my value");

Loading…
Cancel
Save