Unverified Commit 14144c68 authored by Huachao Huang's avatar Huachao Huang Committed by GitHub

Export ExternalSstFileInfo and impl Send and Sync for Env (#165)

parent 87a8e359
......@@ -37,8 +37,8 @@ pub use librocksdb_sys::{self as crocksdb_ffi, new_bloom_filter, CompactionPrior
DBCompactionStyle, DBCompressionType, DBEntryType, DBInfoLogLevel,
DBRecoveryMode, DBStatisticsHistogramType, DBStatisticsTickerType};
pub use merge_operator::MergeOperands;
pub use rocksdb::{BackupEngine, CFHandle, DBIterator, DBVector, Env, Kv, Range, SeekKey,
SequentialFile, SstFileWriter, Writable, WriteBatch, DB};
pub use rocksdb::{BackupEngine, CFHandle, DBIterator, DBVector, Env, ExternalSstFileInfo, Kv,
Range, SeekKey, SequentialFile, SstFileWriter, Writable, WriteBatch, DB};
pub use rocksdb_options::{BlockBasedOptions, ColumnFamilyOptions, CompactOptions, DBOptions,
EnvOptions, FifoCompactionOptions, HistogramData,
IngestExternalFileOptions, RateLimiter, ReadOptions, RestoreOptions,
......
......@@ -1855,6 +1855,9 @@ pub struct Env {
pub inner: *mut DBEnv,
}
unsafe impl Send for Env {}
unsafe impl Sync for Env {}
impl Default for Env {
fn default() -> Env {
unsafe {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment