提交 c2a18bf4 编写于 作者: N Nikolai Kochetov

Fix build.

上级 ce11662a
......@@ -14,7 +14,7 @@ namespace DB
class ODBCColumnsInfoHandler : public Poco::Net::HTTPRequestHandler
{
public:
ODBCColumnsInfoHandler(size_t keep_alive_timeout_, std::shared_ptr<Context> context_)
ODBCColumnsInfoHandler(size_t keep_alive_timeout_, Context & context_)
: log(&Poco::Logger::get("ODBCColumnsInfoHandler")), keep_alive_timeout(keep_alive_timeout_), context(context_)
{
}
......@@ -24,7 +24,7 @@ public:
private:
Poco::Logger * log;
size_t keep_alive_timeout;
std::shared_ptr<Context> context;
Context & context;
};
}
#endif
......@@ -12,7 +12,7 @@ namespace DB
class IdentifierQuoteHandler : public Poco::Net::HTTPRequestHandler
{
public:
IdentifierQuoteHandler(size_t keep_alive_timeout_, std::shared_ptr<Context> context_)
IdentifierQuoteHandler(size_t keep_alive_timeout_, Context & context_)
: log(&Poco::Logger::get("IdentifierQuoteHandler")), keep_alive_timeout(keep_alive_timeout_), context(context_)
{
}
......@@ -22,7 +22,7 @@ public:
private:
Poco::Logger * log;
size_t keep_alive_timeout;
std::shared_ptr<Context> context;
Context & context;
};
}
#endif
......@@ -24,7 +24,7 @@ public:
ODBCHandler(std::shared_ptr<PoolMap> pool_map_,
size_t keep_alive_timeout_,
std::shared_ptr<Context> context_)
Context & context_)
: log(&Poco::Logger::get("ODBCHandler"))
, pool_map(pool_map_)
, keep_alive_timeout(keep_alive_timeout_)
......@@ -39,7 +39,7 @@ private:
std::shared_ptr<PoolMap> pool_map;
size_t keep_alive_timeout;
std::shared_ptr<Context> context;
Context & context;
static inline std::mutex mutex;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册