Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit b0ff564

Browse files
authored
eagerly load default namespace (#661)
1 parent ef55476 commit b0ff564

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sqld/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,13 @@ async fn start_primary(
498498
let factory = PrimaryNamespaceMaker::new(conf);
499499
let namespaces = Arc::new(NamespaceStore::new(factory, false));
500500

501+
if config.disable_namespaces {
502+
// eagerly load the default namespace
503+
namespaces
504+
.create(DEFAULT_NAMESPACE_NAME.into(), RestoreOption::Latest)
505+
.await?;
506+
}
507+
501508
if let Some(ref addr) = config.rpc_server_addr {
502509
join_set.spawn(run_rpc_server(
503510
*addr,

0 commit comments

Comments
 (0)