fix: use Arc to handle IO

This commit is contained in:
Joan Martinez
2024-07-21 19:01:58 +02:00
parent 28a078726a
commit 4bcae54aa9
11 changed files with 30 additions and 24 deletions

View File

@@ -4,7 +4,8 @@
use log::trace;
use std::cell::RefCell;
use std::ffi;
use std::rc::Rc;
use std::sync::Arc;
macro_rules! stub {
() => {
@@ -103,7 +104,7 @@ pub unsafe extern "C" fn sqlite3_open(
Err(_) => return SQLITE_MISUSE,
};
let io = match limbo_core::PlatformIO::new() {
Ok(io) => Rc::new(io),
Ok(io) => Arc::new(io),
Err(_) => return SQLITE_MISUSE,
};
match limbo_core::Database::open_file(io, filename) {