Skip to content

Commit 83f3b67

Browse files
committed
rename PrimaryExtraConfig to PrimaryConfig
1 parent 3ea7eb9 commit 83f3b67

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

libsql-server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ where
972972
migration_scheduler_handle: SchedulerHandle,
973973
scripted_backup: Option<ScriptBackupManager>,
974974
) {
975-
let primary_config = PrimaryExtraConfig {
975+
let primary_config = PrimaryConfig {
976976
max_log_size: self.db_config.max_log_size,
977977
max_log_duration: self.db_config.max_log_duration.map(Duration::from_secs_f32),
978978
bottomless_replication: self.db_config.bottomless_replication.clone(),

libsql-server/src/namespace/configurator/fork.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::replication::{LogReadError, ReplicationLogger};
2020
use crate::{BLOCKING_RT, LIBSQL_PAGE_SIZE};
2121

2222
use super::helpers::make_bottomless_options;
23-
use super::{NamespaceName, NamespaceStore, PrimaryExtraConfig, RestoreOption};
23+
use super::{NamespaceName, NamespaceStore, PrimaryConfig, RestoreOption};
2424

2525
type Result<T> = crate::Result<T, ForkError>;
2626

@@ -31,7 +31,7 @@ pub(super) async fn fork(
3131
to_config: MetaStoreHandle,
3232
timestamp: Option<NaiveDateTime>,
3333
store: NamespaceStore,
34-
primary_config: &PrimaryExtraConfig,
34+
primary_config: &PrimaryConfig,
3535
base_path: Arc<Path>,
3636
) -> crate::Result<Namespace> {
3737
let from_config = from_config.get();

libsql-server/src/namespace/configurator/helpers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ use crate::replication::{FrameNo, ReplicationLogger};
3131
use crate::stats::Stats;
3232
use crate::{StatsSender, BLOCKING_RT, DB_CREATE_TIMEOUT, DEFAULT_AUTO_CHECKPOINT};
3333

34-
use super::{BaseNamespaceConfig, PrimaryExtraConfig};
34+
use super::{BaseNamespaceConfig, PrimaryConfig};
3535

3636
const WASM_TABLE_CREATE: &str =
3737
"CREATE TABLE libsql_wasm_func_table (name text PRIMARY KEY, body text) WITHOUT ROWID;";
3838

3939
#[tracing::instrument(skip_all)]
4040
pub(super) async fn make_primary_connection_maker(
41-
primary_config: &PrimaryExtraConfig,
41+
primary_config: &PrimaryConfig,
4242
base_config: &BaseNamespaceConfig,
4343
meta_store_handle: &MetaStoreHandle,
4444
db_path: &Path,
@@ -422,7 +422,7 @@ async fn run_storage_monitor(
422422

423423
pub(super) async fn cleanup_primary(
424424
base: &BaseNamespaceConfig,
425-
primary_config: &PrimaryExtraConfig,
425+
primary_config: &PrimaryConfig,
426426
namespace: &NamespaceName,
427427
db_config: &DatabaseConfig,
428428
prune_all: bool,

libsql-server/src/namespace/configurator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct BaseNamespaceConfig {
4848
}
4949

5050
#[derive(Clone)]
51-
pub struct PrimaryExtraConfig {
51+
pub struct PrimaryConfig {
5252
pub(crate) max_log_size: u64,
5353
pub(crate) max_log_duration: Option<Duration>,
5454
pub(crate) bottomless_replication: Option<bottomless::replicator::Options>,

0 commit comments

Comments
 (0)