core/io: Switch to Arc<Completion>

This commit is contained in:
Pekka Enberg 2025-05-22 09:32:16 +03:00
parent 21535018aa
commit eca9a5b703
14 changed files with 78 additions and 63 deletions

View file

@ -1,3 +1,5 @@
#![allow(clippy::arc_with_non_send_sync)]
use std::cell::UnsafeCell;
use std::collections::HashMap;
use tracing::{debug, trace};
@ -750,7 +752,7 @@ impl Wal for WalFile {
*syncing.borrow_mut() = false;
}),
});
shared.file.sync(completion)?;
shared.file.sync(Arc::new(completion))?;
}
self.sync_state.replace(SyncState::Syncing);
Ok(WalFsyncStatus::IO)