mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-27 03:44:25 +01:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user