fixed_index: impl Send for FixedIndexWriter

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-03-06 10:20:04 +01:00
parent 3b7ade9e78
commit c3bb97e59c
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ pub struct FixedIndexWriter {
pub ctime: u64,
}
// `index` is mmap()ed which cannot be thread-local so should be sendable
unsafe impl Send for FixedIndexWriter {}
impl Drop for FixedIndexWriter {
fn drop(&mut self) {