Header compile fixes

This commit is contained in:
proller 2017-09-01 22:04:46 +03:00
parent 5889aa9c74
commit aa1f27553e
5 changed files with 16 additions and 8 deletions

View File

@ -21,14 +21,15 @@
#include <ext/range.h> #include <ext/range.h>
namespace DB
{
namespace ErrorCodes namespace ErrorCodes
{ {
extern const int LOGICAL_ERROR; extern const int LOGICAL_ERROR;
} }
namespace DB
{
/** Calculates quantile for time in milliseconds, less than 30 seconds. /** Calculates quantile for time in milliseconds, less than 30 seconds.
* If the value is greater than 30 seconds, the value is set to 30 seconds. * If the value is greater than 30 seconds, the value is set to 30 seconds.
* *

View File

@ -1,5 +1,9 @@
#pragma once #pragma once
#include <cstddef>
#include <utility>
#include <Core/Defines.h>
namespace DB namespace DB
{ {

View File

@ -13,6 +13,8 @@ namespace CurrentMetrics
extern const Metric HTTPConnection; extern const Metric HTTPConnection;
} }
namespace Poco { class Logger; }
namespace DB namespace DB
{ {
@ -52,7 +54,7 @@ private:
}; };
IServer & server; IServer & server;
Logger * log; Poco::Logger * log;
CurrentMetrics::Increment metric_increment{CurrentMetrics::HTTPConnection}; CurrentMetrics::Increment metric_increment{CurrentMetrics::HTTPConnection};

View File

@ -18,6 +18,7 @@ namespace CurrentMetrics
extern const Metric TCPConnection; extern const Metric TCPConnection;
} }
namespace Poco { class Logger; }
namespace DB namespace DB
{ {
@ -86,7 +87,7 @@ public:
private: private:
IServer & server; IServer & server;
Logger * log; Poco::Logger * log;
String client_name; String client_name;
UInt64 client_version_major = 0; UInt64 client_version_major = 0;

View File

@ -1,11 +1,11 @@
#pragma once #pragma once
#include <Poco/Net/TCPServerConnectionFactory.h> #include <Poco/Net/TCPServerConnectionFactory.h>
#include <common/logger_useful.h>
#include "IServer.h" #include "IServer.h"
#include "TCPHandler.h" #include "TCPHandler.h"
namespace Poco { class Logger; }
namespace DB namespace DB
{ {
@ -14,7 +14,7 @@ class TCPHandlerFactory : public Poco::Net::TCPServerConnectionFactory
{ {
private: private:
IServer & server; IServer & server;
Logger * log; Poco::Logger * log;
public: public:
TCPHandlerFactory(IServer & server_) TCPHandlerFactory(IServer & server_)