This commit is contained in:
William Brown 2025-04-01 10:52:49 +10:00
parent bcea809aad
commit b0a83a6972
2 changed files with 2 additions and 3 deletions
server/lib/src/be

View file

@ -12,7 +12,6 @@ use rusqlite::vtab::array::Array;
use rusqlite::{Connection, OpenFlags, OptionalExtension};
use std::collections::{BTreeMap, BTreeSet, VecDeque};
use std::convert::{TryFrom, TryInto};
use std::path::Path;
use std::sync::Arc;
use std::sync::Mutex;
use std::time::Duration;
@ -1707,7 +1706,7 @@ impl IdlSqliteWriteTransaction {
impl IdlSqlite {
pub fn new(cfg: &BackendConfig, vacuum: bool) -> Result<Self, OperationError> {
if cfg.path == Path::new("") {
if cfg.path.as_os_str().is_empty() {
debug_assert_eq!(cfg.pool_size, 1);
}
// If provided, set the page size to match the tuning we want. By default we use 4096. The VACUUM

View file

@ -2126,7 +2126,7 @@ impl Backend {
debug!(db_tickets = ?cfg.pool_size, profile = %env!("KANIDM_PROFILE_NAME"), cpu_flags = %env!("KANIDM_CPU_FLAGS"));
// If in memory, reduce pool to 1
if cfg.path == Path::new("") {
if cfg.path.as_os_str().is_empty() {
cfg.pool_size = 1;
}