Skip to content

Commit b508a74

Browse files
committed
create meta store before configurators
1 parent 0952e71 commit b508a74

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

libsql-server/src/lib.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -556,16 +556,6 @@ where
556556
encryption_config: self.db_config.encryption_config.clone(),
557557
};
558558

559-
let (configurators, make_replication_svc) = self
560-
.make_configurators_and_replication_svc(
561-
base_config,
562-
client_config.clone(),
563-
&mut task_manager,
564-
scheduler_sender.into(),
565-
scripted_backup,
566-
)
567-
.await?;
568-
569559
let (metastore_conn_maker, meta_store_wal_manager) =
570560
metastore_connection_maker(self.meta_store_config.bottomless.clone(), &self.path)
571561
.await?;
@@ -578,6 +568,17 @@ where
578568
)
579569
.await?;
580570

571+
let (configurators, make_replication_svc) = self
572+
.make_configurators_and_replication_svc(
573+
base_config,
574+
client_config.clone(),
575+
&mut task_manager,
576+
scheduler_sender.into(),
577+
scripted_backup,
578+
)
579+
.await?;
580+
581+
581582
let namespace_store: NamespaceStore = NamespaceStore::new(
582583
db_kind.is_replica(),
583584
self.db_config.snapshot_at_shutdown,

0 commit comments

Comments
 (0)