Skip to content

Commit

Permalink
Make FlushOptions Send and Sync (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
jansegre authored and zaidoon1 committed Feb 13, 2024
1 parent e2b5caf commit 3766fe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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 {}
Expand Down

0 comments on commit 3766fe2

Please sign in to comment.