Skip to content

Commit

Permalink
Fix replication bug (#1012)
Browse files Browse the repository at this point in the history
fix replicatioon bug
  • Loading branch information
MarinPostma committed Feb 12, 2024
1 parent 94c2ec0 commit c6d4f1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libsql-replication/src/injector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ impl Injector {

fn begin_txn(&mut self) -> Result<(), Error> {
let conn = self.connection.lock();
conn.pragma_update(None, "writable_schema", "true")?;

let mut stmt = conn.prepare_cached("BEGIN IMMEDIATE")?;
stmt.execute(())?;
// we create a dummy table. This table MUST not be persisted, otherwise the replica schema
Expand Down

0 comments on commit c6d4f1d

Please sign in to comment.