From 87069fde93c6132ca124394586dd26661add9cb3 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 23 Oct 2025 19:35:46 +0300 Subject: [PATCH] core/storage: Fix WAL already enabled issue If WAL is already enabled, let's just continue execution instead of erroring out. --- core/storage/wal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/storage/wal.rs b/core/storage/wal.rs index 8a7ed81a6..09fcd2af3 100644 --- a/core/storage/wal.rs +++ b/core/storage/wal.rs @@ -2413,7 +2413,7 @@ impl WalFileShared { pub fn create(&mut self, file: Arc) -> Result<()> { if self.enabled.load(Ordering::SeqCst) { - return Err(LimboError::InternalError("WAL already enabled".to_string())); + return Ok(()); } let magic = if cfg!(target_endian = "big") {