diff --git a/src/backup/dynamic_index.rs b/src/backup/dynamic_index.rs index a5ac821e..3a9b8beb 100644 --- a/src/backup/dynamic_index.rs +++ b/src/backup/dynamic_index.rs @@ -36,7 +36,8 @@ pub struct DynamicIndexReader { pub ctime: u64, } -// fixme: ???!!! +// `index` is mmap()ed which cannot be thread-local so should be sendable +// FIXME: Introduce an mmap wrapper type for this? unsafe impl Send for DynamicIndexReader {} impl Drop for DynamicIndexReader { diff --git a/src/backup/fixed_index.rs b/src/backup/fixed_index.rs index 1dc69587..d41601db 100644 --- a/src/backup/fixed_index.rs +++ b/src/backup/fixed_index.rs @@ -36,6 +36,9 @@ pub struct FixedIndexReader { pub ctime: u64, } +// `index` is mmap()ed which cannot be thread-local so should be sendable +unsafe impl Send for FixedIndexReader {} + impl Drop for FixedIndexReader { fn drop(&mut self) {