Implement Send and Sync for Snapshot.

master
pavel-mukhanov 6 years ago
parent bf17f0ad1c
commit 10b1ef7f85
  1. 3
      src/db.rs

@ -104,6 +104,9 @@ pub struct Snapshot<'a> {
inner: *const ffi::rocksdb_snapshot_t, inner: *const ffi::rocksdb_snapshot_t,
} }
unsafe impl<'a> Send for Snapshot<'a> {}
unsafe impl<'a> Sync for Snapshot<'a> {}
/// An iterator over a database or column family, with specifiable /// An iterator over a database or column family, with specifiable
/// ranges and direction. /// ranges and direction.
/// ///

Loading…
Cancel
Save