@@ -32,7 +32,6 @@ use url::Url;
3232use utils:: services:: idle_shutdown:: IdleShutdownKicker ;
3333
3434use crate :: auth:: Auth ;
35- use crate :: connection:: config:: DatabaseConfigStore ;
3635use crate :: connection:: { Connection , MakeConnection } ;
3736use crate :: error:: Error ;
3837use crate :: migration:: maybe_migrate;
@@ -91,7 +90,6 @@ pub struct Server<C = HttpConnector, A = AddrIncoming> {
9190struct Services < M : MakeNamespace , A , P , S > {
9291 namespaces : NamespaceStore < M > ,
9392 idle_shutdown_kicker : Option < IdleShutdownKicker > ,
94- db_config_store : Arc < DatabaseConfigStore > ,
9593 proxy_service : P ,
9694 replication_service : S ,
9795 user_api_config : UserApiConfig < A > ,
@@ -130,11 +128,7 @@ where
130128 user_http. configure ( join_set) ;
131129
132130 if let Some ( AdminApiConfig { acceptor } ) = self . admin_api_config {
133- join_set. spawn ( http:: admin:: run (
134- acceptor,
135- self . db_config_store ,
136- self . namespaces ,
137- ) ) ;
131+ join_set. spawn ( http:: admin:: run ( acceptor, self . namespaces ) ) ;
138132 }
139133 }
140134}
@@ -316,9 +310,6 @@ where
316310 let db_is_dirty = init_sentinel_file ( & self . path ) ?;
317311 let idle_shutdown_kicker = self . setup_shutdown ( ) ;
318312
319- let db_config_store = Arc :: new (
320- DatabaseConfigStore :: load ( & self . path ) . context ( "Could not load database config" ) ?,
321- ) ;
322313 let snapshot_callback = self . make_snapshot_callback ( ) ;
323314 let auth = self . user_api_config . get_auth ( ) ?. into ( ) ;
324315 let extensions = self . db_config . validate_extensions ( ) ?;
@@ -328,7 +319,6 @@ where
328319 let replica = Replica {
329320 rpc_config,
330321 stats_sender,
331- db_config_store : db_config_store. clone ( ) ,
332322 extensions,
333323 db_config : self . db_config . clone ( ) ,
334324 base_path : self . path . clone ( ) ,
@@ -337,7 +327,6 @@ where
337327 let services = Services {
338328 namespaces,
339329 idle_shutdown_kicker,
340- db_config_store,
341330 proxy_service,
342331 replication_service,
343332 user_api_config : self . user_api_config ,
@@ -357,7 +346,6 @@ where
357346 db_config : self . db_config . clone ( ) ,
358347 idle_shutdown_kicker : idle_shutdown_kicker. clone ( ) ,
359348 stats_sender,
360- db_config_store : db_config_store. clone ( ) ,
361349 db_is_dirty,
362350 snapshot_callback,
363351 extensions,
@@ -371,7 +359,6 @@ where
371359 let services = Services {
372360 namespaces,
373361 idle_shutdown_kicker,
374- db_config_store,
375362 proxy_service,
376363 replication_service,
377364 user_api_config : self . user_api_config ,
@@ -415,7 +402,6 @@ struct Primary<'a, A> {
415402 db_config : DbConfig ,
416403 idle_shutdown_kicker : Option < IdleShutdownKicker > ,
417404 stats_sender : StatsSender ,
418- db_config_store : Arc < DatabaseConfigStore > ,
419405 db_is_dirty : bool ,
420406 snapshot_callback : NamespacedSnapshotCallback ,
421407 extensions : Arc < [ PathBuf ] > ,
@@ -445,7 +431,6 @@ where
445431 bottomless_replication : self . db_config . bottomless_replication ,
446432 extensions : self . extensions ,
447433 stats_sender : self . stats_sender . clone ( ) ,
448- config_store : self . db_config_store ,
449434 max_response_size : self . db_config . max_response_size ,
450435 max_total_response_size : self . db_config . max_total_response_size ,
451436 checkpoint_interval : self . db_config . checkpoint_interval ,
@@ -491,7 +476,6 @@ where
491476struct Replica < C > {
492477 rpc_config : RpcClientConfig < C > ,
493478 stats_sender : StatsSender ,
494- db_config_store : Arc < DatabaseConfigStore > ,
495479 extensions : Arc < [ PathBuf ] > ,
496480 db_config : DbConfig ,
497481 base_path : Arc < Path > ,
@@ -512,7 +496,6 @@ impl<C: Connector> Replica<C> {
512496 uri : uri. clone ( ) ,
513497 extensions : self . extensions . clone ( ) ,
514498 stats_sender : self . stats_sender . clone ( ) ,
515- config_store : self . db_config_store . clone ( ) ,
516499 base_path : self . base_path ,
517500 max_response_size : self . db_config . max_response_size ,
518501 max_total_response_size : self . db_config . max_total_response_size ,
0 commit comments