@@ -24,7 +24,7 @@ namespace storages::postgres {
2424DistLockComponentBase::DistLockComponentBase (
2525 const components::ComponentConfig& component_config,
2626 const components::ComponentContext& component_context,
27- AutostartDistlockInternal enable_autostart_at_base
27+ AutostartDistlock enable_autostart_at_base
2828)
2929 : components::ComponentBase(component_config, component_context),
3030 config_ (component_context.FindComponent<components::DynamicConfig>().GetSource()),
@@ -86,7 +86,7 @@ DistLockComponentBase::DistLockComponentBase(
8686 {{" distlock_name" , component_config.Name ()}}
8787 );
8888
89- const bool autostart_enabled = enable_autostart_at_base_ == AutostartDistlockInternal ::kYes ;
89+ const bool autostart_enabled = enable_autostart_at_base_ == AutostartDistlock ::kYes ;
9090 if (component_config[" testsuite-support" ].As <bool >(autostart_enabled)) {
9191 auto & testsuite_tasks = testsuite::GetTestsuiteTasks (component_context);
9292
@@ -107,25 +107,18 @@ DistLockComponentBase::DistLockComponentBase(
107107 }
108108}
109109
110- DistLockComponentBase::DistLockComponentBase (
111- const components::ComponentConfig& component_config,
112- const components::ComponentContext& component_context,
113- AutostartDistlock
114- )
115- : storages::postgres::DistLockComponentBase(component_config, component_context) {}
116-
117110DistLockComponentBase::DistLockComponentBase (
118111 const components::ComponentConfig& component_config,
119112 const components::ComponentContext& component_context
120113)
121- : storages::postgres::DistLockComponentBase(component_config, component_context, AutostartDistlockInternal ::kYes ) {}
114+ : storages::postgres::DistLockComponentBase(component_config, component_context, AutostartDistlock ::kYes ) {}
122115
123116DistLockComponentBase::DistLockComponentBase (
124117 const components::ComponentConfig& component_config,
125118 const components::ComponentContext& component_context,
126119 DisableAutostartAtBase
127120)
128- : storages::postgres::DistLockComponentBase(component_config, component_context, AutostartDistlockInternal ::kNo ) {}
121+ : storages::postgres::DistLockComponentBase(component_config, component_context, AutostartDistlock ::kNo ) {}
129122
130123DistLockComponentBase::~DistLockComponentBase () { subscription_token_.Unsubscribe (); }
131124
@@ -134,7 +127,7 @@ dist_lock::DistLockedWorker& DistLockComponentBase::GetWorker() { return *worker
134127bool DistLockComponentBase::OwnsLock () const noexcept { return worker_->OwnsLock () || testsuite_enabled_; }
135128
136129void DistLockComponentBase::AutostartDistLock () {
137- UASSERT (enable_autostart_at_base_ == AutostartDistlockInternal ::kNo );
130+ UASSERT (enable_autostart_at_base_ == AutostartDistlock ::kNo );
138131
139132 if (testsuite_enabled_) {
140133 return ;
0 commit comments