diff --git a/core/storage/sqlite3_ondisk.rs b/core/storage/sqlite3_ondisk.rs index bb43986f7..d0d5249ca 100644 --- a/core/storage/sqlite3_ondisk.rs +++ b/core/storage/sqlite3_ondisk.rs @@ -1576,7 +1576,7 @@ pub fn prepare_wal_frame( let drop_fn = Rc::new(|_buf| {}); let mut buffer = Buffer::allocate(page_size as usize + WAL_FRAME_HEADER_SIZE, drop_fn); let frame = buffer.as_mut_slice(); - frame[WAL_FRAME_HEADER_SIZE..].copy_from_slice(&page); + frame[WAL_FRAME_HEADER_SIZE..].copy_from_slice(page); frame[0..4].copy_from_slice(&page_number.to_be_bytes()); frame[4..8].copy_from_slice(&db_size.to_be_bytes()); diff --git a/core/storage/wal.rs b/core/storage/wal.rs index b0ff80e5f..adcbfee00 100644 --- a/core/storage/wal.rs +++ b/core/storage/wal.rs @@ -706,8 +706,7 @@ impl Wal for WalFile { self.io.wait_for_completion(c)?; return if conflict.get() { Err(LimboError::InvalidArgument(format!( - "frame content differs from the WAL: frame_id={}", - frame_id + "frame content differs from the WAL: frame_id={frame_id}" ))) } else { Ok(())