Skip to content

Commit

Permalink
Make CompactOptions Send and Sync (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
GodTamIt committed Dec 14, 2023
1 parent 394121c commit 66f04df
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 @@ -282,6 +282,7 @@ unsafe impl Send for CuckooTableOptions {}
unsafe impl Send for ReadOptions {}
unsafe impl Send for IngestExternalFileOptions {}
unsafe impl Send for CacheWrapper {}
unsafe impl Send for CompactOptions {}

// Sync is similarly safe for many types because they do not expose interior mutability, and their
// use within the rocksdb library is generally behind a const reference
Expand All @@ -292,6 +293,7 @@ unsafe impl Sync for CuckooTableOptions {}
unsafe impl Sync for ReadOptions {}
unsafe impl Sync for IngestExternalFileOptions {}
unsafe impl Sync for CacheWrapper {}
unsafe impl Sync for CompactOptions {}

impl Drop for Options {
fn drop(&mut self) {
Expand Down

0 comments on commit 66f04df

Please sign in to comment.