mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
core/io: Switch to Arc<Completion>
This commit is contained in:
parent
21535018aa
commit
eca9a5b703
14 changed files with 78 additions and 63 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue