mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-29 21:04:23 +01:00
use core wal file for wasm
This commit is contained in:
@@ -25,8 +25,7 @@ use std::{cell::RefCell, rc::Rc};
|
||||
#[cfg(feature = "fs")]
|
||||
use storage::database::FileStorage;
|
||||
use storage::sqlite3_ondisk::DatabaseHeader;
|
||||
#[cfg(feature = "fs")]
|
||||
use storage::wal::WalFile;
|
||||
pub use storage::wal::WalFile;
|
||||
|
||||
use translate::optimizer::optimize_plan;
|
||||
use translate::planner::prepare_select_plan;
|
||||
|
||||
@@ -57,7 +57,6 @@ pub trait Wal {
|
||||
fn sync(&mut self) -> Result<CheckpointStatus>;
|
||||
}
|
||||
|
||||
#[cfg(feature = "fs")]
|
||||
pub struct WalFile {
|
||||
io: Arc<dyn crate::io::IO>,
|
||||
wal_path: String,
|
||||
@@ -80,7 +79,6 @@ pub enum CheckpointStatus {
|
||||
IO,
|
||||
}
|
||||
|
||||
#[cfg(feature = "fs")]
|
||||
impl Wal for WalFile {
|
||||
/// Begin a read transaction.
|
||||
fn begin_read_tx(&self) -> Result<()> {
|
||||
@@ -232,7 +230,6 @@ impl Wal for WalFile {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "fs")]
|
||||
impl WalFile {
|
||||
pub fn new(io: Arc<dyn IO>, wal_path: String, page_size: usize) -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user