empty -> unitialized

This commit is contained in:
Pere Diaz Bou
2025-06-26 17:59:23 +02:00
parent e341b80051
commit aa93b70a96
2 changed files with 3 additions and 3 deletions

View File

@@ -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
};

View File

@@ -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