Skip to content

Commit 66f04df

Browse files
authoredDec 14, 2023
Make CompactOptions Send and Sync (rust-rocksdb#849)
1 parent 394121c commit 66f04df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/db_options.rs

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ unsafe impl Send for CuckooTableOptions {}
282282
unsafe impl Send for ReadOptions {}
283283
unsafe impl Send for IngestExternalFileOptions {}
284284
unsafe impl Send for CacheWrapper {}
285+
unsafe impl Send for CompactOptions {}
285286

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

296298
impl Drop for Options {
297299
fn drop(&mut self) {

0 commit comments

Comments
 (0)