From b1d8a04778b2aa52cb6e5d3120fec3d0fdc4556c Mon Sep 17 00:00:00 2001 From: Jan Segre Date: Tue, 13 Feb 2024 11:04:10 +0100 Subject: Make `FlushOptions` `Send` and `Sync` (#860) --- src/db_options.rs | 2 ++ 1 file changed, 2 insertions(+) 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 {} -- cgit v1.2.3-70-g09d2