From dcf20eaa771acf78ab565922d42ab7915622d2d0 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Mon, 26 Oct 2026 18:03:48 -0700 Subject: [PATCH] feat: default enable_multi_writes to true Tracks LadybugDB/ladybug#1435, which renames debug_enable_multi_writes to enable_multi_writes and flips the engine default to true. Mirror that default here so the binding does not silently pin single-writer mode. --- src/database.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database.rs b/src/database.rs index 82a9ff4..b621bc5 100644 --- a/src/database.rs +++ b/src/database.rs @@ -44,7 +44,7 @@ pub struct SystemConfig { /// If true, the database will use checksums to detect corruption in the WAL file. enable_checksums: bool, /// If true, multiple concurrent write transactions are allowed. - /// Defaults to false + /// Defaults to true enable_multi_writes: bool, } @@ -61,7 +61,7 @@ pub(crate) const SYSTEM_CONFIG_FOR_TESTS: SystemConfig = SystemConfig { checkpoint_threshold: -1_i64, throw_on_wal_replay_failure: true, enable_checksums: true, - enable_multi_writes: false, + enable_multi_writes: true, }; impl Default for SystemConfig { @@ -77,7 +77,7 @@ impl Default for SystemConfig { checkpoint_threshold: -1_i64, throw_on_wal_replay_failure: true, enable_checksums: true, - enable_multi_writes: false, + enable_multi_writes: true, } } }