dbms: using user name as default quota key [#METR-8459].

This commit is contained in:
Alexey Milovidov 2013-10-23 23:24:31 +00:00
parent 1845d91ac6
commit 59095d4333

View File

@ -39,7 +39,7 @@ void Context::setUser(const String & name, const String & password, const Poco::
const User & user_props = shared->users.get(name, password, address); const User & user_props = shared->users.get(name, password, address);
setSetting("profile", user_props.profile); setSetting("profile", user_props.profile);
setQuota(user_props.quota, quota_key, address); setQuota(user_props.quota, quota_key.empty() ? name : quota_key, address);
user = name; user = name;
} }