Fixed error after merge; tiny modification [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-06-05 17:40:44 +03:00
parent 0fb00dc88a
commit 9593119a64
2 changed files with 5 additions and 3 deletions

View File

@ -224,9 +224,9 @@ struct ContextShared
Context::Context()
: shared(new ContextShared),
quota(new QuotaForIntervals),
system_logs(new SystemLogs)
: shared(std::make_shared<ContextShared>()),
quota(std::make_shared<QuotaForIntervals>()),
system_logs(std::make_shared<SystemLogs>())
{
}

View File

@ -105,6 +105,8 @@ private:
Context * global_context = nullptr; /// Global context or nullptr. Could be equal to this.
SystemLogsPtr system_logs; /// Used to log queries and operations on parts
UInt64 session_close_cycle = 0;
bool session_is_used = false;
using DatabasePtr = std::shared_ptr<IDatabase>;
using Databases = std::map<String, std::shared_ptr<IDatabase>>;