summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Segre <jansegre@gmail.com>2024-02-13 11:04:10 +0100
committerGitHub <noreply@github.com>2024-02-13 10:04:10 +0000
commitb1d8a04778b2aa52cb6e5d3120fec3d0fdc4556c (patch)
tree645d427fc97ecc7b1b5409e35f471d233cef6f61
parent5fca3d64fc40dc394800e479bc1ce99c58ef95d2 (diff)
Make `FlushOptions` `Send` and `Sync` (#860)
-rw-r--r--src/db_options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db_options.rs b/src/db_options.rs
index 28ba428..65ea976 100644
--- a/src/db_options.rs
+++ b/src/db_options.rs
@@ -384,6 +384,7 @@ pub struct IngestExternalFileOptions {
// rocksdb internally does not rely on thread-local information for its user-exposed types.
unsafe impl Send for Options {}
unsafe impl Send for WriteOptions {}
+unsafe impl Send for FlushOptions {}
unsafe impl Send for BlockBasedOptions {}
unsafe impl Send for CuckooTableOptions {}
unsafe impl Send for ReadOptions {}
@@ -396,6 +397,7 @@ unsafe impl Send for WriteBufferManagerWrapper {}
// use within the rocksdb library is generally behind a const reference
unsafe impl Sync for Options {}
unsafe impl Sync for WriteOptions {}
+unsafe impl Sync for FlushOptions {}
unsafe impl Sync for BlockBasedOptions {}
unsafe impl Sync for CuckooTableOptions {}
unsafe impl Sync for ReadOptions {}