Fix build.

This commit is contained in:
Nikolai Kochetov 2020-04-17 17:40:39 +03:00
parent ce11662ab1
commit c2a18bf418
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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;