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

Commit

Permalink
eagerly load default namespace (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma authored Sep 7, 2023
1 parent ef55476 commit b0ff564
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sqld/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,13 @@ async fn start_primary(
let factory = PrimaryNamespaceMaker::new(conf);
let namespaces = Arc::new(NamespaceStore::new(factory, false));

if config.disable_namespaces {
// eagerly load the default namespace
namespaces
.create(DEFAULT_NAMESPACE_NAME.into(), RestoreOption::Latest)
.await?;
}

if let Some(ref addr) = config.rpc_server_addr {
join_set.spawn(run_rpc_server(
*addr,
Expand Down

0 comments on commit b0ff564

Please sign in to comment.