Add Send implementation for WriteBatch (#453)

master
Stanislav Tkach 4 years ago committed by GitHub
parent ee79b7bb4a
commit a7461c68ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 3
      src/lib.rs
  3. 2
      src/write_batch.rs

@ -4,6 +4,7 @@
* Export the `DEFAULT_COLUMN_FAMILY_NAME` constant.
* Implement `Clone` trait for `Options`.
* Added `Send` implementation to `WriteBatch`.
## 0.14.0 (2020-04-22)

@ -163,7 +163,7 @@ mod test {
use super::{
BlockBasedOptions, ColumnFamily, ColumnFamilyDescriptor, DBIterator, DBRawIterator,
IngestExternalFileOptions, Options, PlainTableFactoryOptions, ReadOptions, Snapshot,
SstFileWriter, WriteOptions, DB,
SstFileWriter, WriteBatch, WriteOptions, DB,
};
#[test]
@ -188,6 +188,7 @@ mod test {
is_send::<ColumnFamilyDescriptor>();
is_send::<ColumnFamily>();
is_send::<SstFileWriter>();
is_send::<WriteBatch>();
}
#[test]

@ -279,3 +279,5 @@ impl Drop for WriteBatch {
unsafe { ffi::rocksdb_writebatch_destroy(self.inner) }
}
}
unsafe impl Send for WriteBatch {}

Loading…
Cancel
Save