mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Addition to prev. revision [#METR-17973].
This commit is contained in:
parent
918422ad48
commit
0ddb9cffdd
@ -187,7 +187,7 @@ class Quotas
|
||||
{
|
||||
private:
|
||||
/// Имя квоты -> квоты.
|
||||
typedef std::unordered_map<String, SharedPtr<Quota> > Container;
|
||||
typedef std::unordered_map<String, std::unique_ptr<Quota>> Container;
|
||||
Container cont;
|
||||
|
||||
public:
|
||||
|
@ -293,7 +293,7 @@ void Quotas::loadFromConfig(Poco::Util::AbstractConfiguration & config)
|
||||
for (Poco::Util::AbstractConfiguration::Keys::const_iterator it = config_keys.begin(); it != config_keys.end(); ++it)
|
||||
{
|
||||
if (!cont[*it])
|
||||
cont[*it] = new Quota();
|
||||
cont[*it].reset(new Quota());
|
||||
cont[*it]->loadFromConfig("quotas." + *it, *it, config, rng);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user