mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Removed useless code [#CONV-2593].
This commit is contained in:
parent
ed1e02e04a
commit
b33de091f0
@ -10,7 +10,6 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <Poco/Observer.h>
|
||||
#include <Poco/RWLock.h>
|
||||
@ -28,10 +27,11 @@
|
||||
#include <Poco/Util/AbstractConfiguration.h>
|
||||
#include <Poco/Exception.h>
|
||||
#include <Poco/ErrorHandler.h>
|
||||
|
||||
#include <Poco/NumberFormatter.h>
|
||||
|
||||
#include "revision.h"
|
||||
|
||||
|
||||
using Poco::Logger;
|
||||
using Poco::AutoPtr;
|
||||
using Poco::Observer;
|
||||
@ -209,11 +209,11 @@ void Daemon::initialize(Application& self)
|
||||
/// В случае падения - сохраняем коры
|
||||
{
|
||||
struct rlimit rlim;
|
||||
int res = getrlimit(RLIMIT_CORE, &rlim);
|
||||
assert(!res);
|
||||
if (getrlimit(RLIMIT_CORE, &rlim))
|
||||
throw Poco::Exception("Cannot getrlimit");
|
||||
rlim.rlim_cur = RLIM_INFINITY;
|
||||
res = setrlimit(RLIMIT_CORE, &rlim);
|
||||
assert(!res);
|
||||
if (setrlimit(RLIMIT_CORE, &rlim))
|
||||
throw Poco::Exception("Cannot setrlimit");
|
||||
}
|
||||
|
||||
// Сбросим генератор случайных чисел
|
||||
@ -236,7 +236,7 @@ void Daemon::initialize(Application& self)
|
||||
Poco::ErrorHandler::set(new Yandex::KillingErrorHandler());
|
||||
|
||||
// Выведем ревизию демона
|
||||
Logger::root().information("Starting daemon with svn revision " + Yandex::to_string(SVN_REVISION));
|
||||
Logger::root().information("Starting daemon with svn revision " + Poco::NumberFormatter::format(SVN_REVISION));
|
||||
}
|
||||
|
||||
void Daemon::uninitialize()
|
||||
|
@ -1,6 +1,7 @@
|
||||
#ifndef MYSQLXX_QUERY_H
|
||||
#define MYSQLXX_QUERY_H
|
||||
|
||||
#include <sstream>
|
||||
#include <ostream>
|
||||
|
||||
#include <mysqlxx/UseQueryResult.h>
|
||||
|
Loading…
Reference in New Issue
Block a user