2020-03-04 22:27:03 +00:00
|
|
|
#include <Access/EnabledSettings.h>
|
2020-07-22 12:02:47 +00:00
|
|
|
#include <Common/SettingsChanges.h>
|
2020-03-04 22:27:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
EnabledSettings::EnabledSettings(const Params & params_) : params(params_)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
EnabledSettings::~EnabledSettings() = default;
|
|
|
|
|
2021-07-22 16:07:03 +00:00
|
|
|
std::shared_ptr<const SettingsProfilesInfo> EnabledSettings::getInfo() const
|
2020-03-04 22:27:03 +00:00
|
|
|
{
|
|
|
|
std::lock_guard lock{mutex};
|
2021-07-22 16:07:03 +00:00
|
|
|
return info;
|
2020-03-04 22:27:03 +00:00
|
|
|
}
|
|
|
|
|
2021-07-22 16:07:03 +00:00
|
|
|
void EnabledSettings::setInfo(const std::shared_ptr<const SettingsProfilesInfo> & info_)
|
2020-03-04 22:27:03 +00:00
|
|
|
{
|
|
|
|
std::lock_guard lock{mutex};
|
2021-07-22 16:07:03 +00:00
|
|
|
info = info_;
|
2020-03-04 22:27:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|