diff --git a/core/lib.rs b/core/lib.rs index 816f54854..37d047294 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -68,7 +68,7 @@ use std::{ use storage::database::DatabaseFile; use storage::page_cache::DumbLruPageCache; pub use storage::pager::PagerCacheflushStatus; -use storage::pager::{DB_STATE_EMPTY, DB_STATE_INITIALIZED}; +use storage::pager::{DB_STATE_INITIALIZED, DB_STATE_UNITIALIZED}; pub use storage::{ buffer_pool::BufferPool, database::DatabaseStorage, @@ -169,7 +169,7 @@ impl Database { }); let is_empty = if db_size == 0 && !wal_has_frames { - DB_STATE_EMPTY + DB_STATE_UNITIALIZED } else { DB_STATE_INITIALIZED }; diff --git a/core/storage/pager.rs b/core/storage/pager.rs index 36c858fe2..97b6d6146 100644 --- a/core/storage/pager.rs +++ b/core/storage/pager.rs @@ -191,7 +191,7 @@ pub enum AutoVacuumMode { Incremental, } -pub const DB_STATE_EMPTY: usize = 0; +pub const DB_STATE_UNITIALIZED: usize = 0; pub const DB_STATE_INITIALIZING: usize = 1; pub const DB_STATE_INITIALIZED: usize = 2; /// The pager interface implements the persistence layer by providing access