mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 16:44:19 +01:00
core: Switch RwLock<Arc<Pager>> to ArcSwap<Pager>
We don't actually need the RwLock locking capabilities, just the ability to swap the instance.
This commit is contained in:
@@ -2580,7 +2580,7 @@ mod tests {
|
||||
let io: Arc<dyn IO> = Arc::new(MemoryIO::new());
|
||||
let db = Database::open_file(io.clone(), ":memory:", false, false).unwrap();
|
||||
let conn = db.connect().unwrap();
|
||||
let pager = conn.pager.read().clone();
|
||||
let pager = conn.pager.load().clone();
|
||||
|
||||
let _ = pager.io.block(|| pager.allocate_page1()).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user