From c3bb97e59c80616ef2e72f204c1a464385c5c100 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 6 Mar 2019 10:20:04 +0100 Subject: [PATCH] fixed_index: impl Send for FixedIndexWriter Signed-off-by: Wolfgang Bumiller --- src/backup/fixed_index.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backup/fixed_index.rs b/src/backup/fixed_index.rs index bb3197ba..6dac8092 100644 --- a/src/backup/fixed_index.rs +++ b/src/backup/fixed_index.rs @@ -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) {