Merge 'core/storage: Fix WAL already enabled issue' from Pekka Enberg

If WAL is already enabled, let's just continue execution instead of
erroring out.

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>
Reviewed-by: Pere Diaz Bou <pere-altea@homail.com>

Closes #3819
This commit is contained in:
Pekka Enberg
2025-10-23 20:56:57 +03:00
committed by GitHub

View File

@@ -2413,7 +2413,7 @@ impl WalFileShared {
pub fn create(&mut self, file: Arc<dyn File>) -> 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") {