提交 a9fea031 编写于 作者: N Nikita Mikhaylov

better style

上级 b21c89b4
...@@ -171,8 +171,6 @@ void Server::defineOptions(Poco::Util::OptionSet & _options) ...@@ -171,8 +171,6 @@ void Server::defineOptions(Poco::Util::OptionSet & _options)
BaseDaemon::defineOptions(_options); BaseDaemon::defineOptions(_options);
} }
int Server::main(const std::vector<std::string> & /*args*/) int Server::main(const std::vector<std::string> & /*args*/)
{ {
Logger * log = &logger(); Logger * log = &logger();
...@@ -180,7 +178,6 @@ int Server::main(const std::vector<std::string> & /*args*/) ...@@ -180,7 +178,6 @@ int Server::main(const std::vector<std::string> & /*args*/)
ThreadStatus thread_status; ThreadStatus thread_status;
registerFunctions(); registerFunctions();
registerAggregateFunctions(); registerAggregateFunctions();
registerTableFunctions(); registerTableFunctions();
......
...@@ -309,8 +309,6 @@ void SystemLog<LogElement>::threadFunction() ...@@ -309,8 +309,6 @@ void SystemLog<LogElement>::threadFunction()
} }
template <typename LogElement> template <typename LogElement>
void SystemLog<LogElement>::flushImpl(EntryType reason) void SystemLog<LogElement>::flushImpl(EntryType reason)
{ {
...@@ -444,5 +442,3 @@ void SystemLog<LogElement>::prepareTable() ...@@ -444,5 +442,3 @@ void SystemLog<LogElement>::prepareTable()
} }
} }
...@@ -5,8 +5,6 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ...@@ -5,8 +5,6 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
${CLICKHOUSE_CLIENT} --query="SELECT 6103" ${CLICKHOUSE_CLIENT} --query="SELECT 6103"
>00974_text_log_table_not_empty.tmp
for (( i=1; i <= 50; i++ )) for (( i=1; i <= 50; i++ ))
do do
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
#include <Core/SettingsCommon.h> #include <Core/SettingsCommon.h>
#include <Common/CurrentThread.h> #include <Common/CurrentThread.h>
#include <iostream>
#ifndef QUERY_PREVIEW_LENGTH #ifndef QUERY_PREVIEW_LENGTH
#define QUERY_PREVIEW_LENGTH 160 #define QUERY_PREVIEW_LENGTH 160
#endif #endif
......
...@@ -22,7 +22,8 @@ static std::string createDirectory(const std::string & file) ...@@ -22,7 +22,8 @@ static std::string createDirectory(const std::string & file)
return path.toString(); return path.toString();
}; };
void Loggers::setTextLog(std::shared_ptr<DB::TextLog> log) { void Loggers::setTextLog(std::shared_ptr<DB::TextLog> log)
{
text_log = log; text_log = log;
} }
......
...@@ -14,8 +14,6 @@ namespace DB ...@@ -14,8 +14,6 @@ namespace DB
class OwnSplitChannel : public Poco::Channel class OwnSplitChannel : public Poco::Channel
{ {
public: public:
OwnSplitChannel() = default;
/// Makes an extended message from msg and passes it to the client logs queue and child (if possible) /// Makes an extended message from msg and passes it to the client logs queue and child (if possible)
void log(const Poco::Message & msg) override; void log(const Poco::Message & msg) override;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册