#[derive(Debug, Clone)]
pub struct StorageConfig {
pub data_dir: String,
pub sync_writes: bool,
pub max_log_entries: usize,
pub compress_snapshots: bool,
pub backup_retention: usize,
pub enable_corruption_detection: bool,
pub enable_crash_recovery: bool,
pub enable_wal: bool,
}
impl Default for StorageConfig {
fn default() -> Self {
Self {
data_dir: "./data".to_string(),
sync_writes: true,
max_log_entries: 10000,
compress_snapshots: true,
backup_retention: 3,
enable_corruption_detection: true,
enable_crash_recovery: true,
enable_wal: true,
}
}
}