mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 15:35:29 +01:00
empty -> unitialized
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user