ClickHouse/src/Access/EnabledSettings.cpp

27 lines
497 B
C++
Raw Normal View History

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