fix: Remove rocksdb secondary mode

This commit is contained in:
Terry
2026-02-18 23:04:00 +00:00
committed by Ellis Git
parent 6a0b103722
commit 7ecac93ddc
9 changed files with 6 additions and 43 deletions
+1 -6
View File
@@ -35,11 +35,7 @@ pub(crate) async fn open(ctx: Arc<Context>, desc: &[Descriptor]) -> Result<Arc<S
}
debug!("Opening database...");
let db = if config.rocksdb_secondary {
Db::open_cf_descriptors_as_secondary(&db_opts, path, path, cfds)
} else {
Db::open_cf_descriptors(&db_opts, path, cfds)
}
let db = Db::open_cf_descriptors(&db_opts, path, cfds)
.or_else(or_else)?;
info!(
@@ -53,7 +49,6 @@ pub(crate) async fn open(ctx: Arc<Context>, desc: &[Descriptor]) -> Result<Arc<S
db,
pool: ctx.pool.clone(),
ctx: ctx.clone(),
secondary: config.rocksdb_secondary,
checksums: config.rocksdb_checksums,
corks: AtomicU32::new(0),
}))