mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Experiment with a custom Lock for database header
This commit is contained in:
parent
fd8ea0179d
commit
20f5ade95e
10 changed files with 147 additions and 54 deletions
|
@ -6,6 +6,7 @@ use std::{
|
|||
};
|
||||
|
||||
use crate::{
|
||||
fast_lock::FastLock,
|
||||
parameters::Parameters,
|
||||
schema::{BTreeTable, Index, PseudoTable},
|
||||
storage::sqlite3_ondisk::DatabaseHeader,
|
||||
|
@ -435,7 +436,7 @@ impl ProgramBuilder {
|
|||
|
||||
pub fn build(
|
||||
mut self,
|
||||
database_header: Arc<Mutex<DatabaseHeader>>,
|
||||
database_header: Arc<FastLock<DatabaseHeader>>,
|
||||
connection: Weak<Connection>,
|
||||
change_cnt_on: bool,
|
||||
) -> Program {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue