mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: removed old code [#METR-2944].
This commit is contained in:
parent
361c167d59
commit
80a3021962
@ -1,5 +1,3 @@
|
||||
#define DBMS_CLIENT 1 /// Используется в Context.h
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -1,5 +1,3 @@
|
||||
#define DBMS_CLIENT 1 /// Используется в Context.h
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -58,19 +58,6 @@ struct ContextShared
|
||||
{
|
||||
Logger * log = &Logger::get("Context"); /// Логгер.
|
||||
|
||||
struct AfterDestroy
|
||||
{
|
||||
Logger * log;
|
||||
|
||||
AfterDestroy(Logger * log_) : log(log_) {}
|
||||
~AfterDestroy()
|
||||
{
|
||||
#ifndef DBMS_CLIENT
|
||||
LOG_INFO(log, "Uninitialized shared context.");
|
||||
#endif
|
||||
}
|
||||
} after_destroy {log};
|
||||
|
||||
mutable Poco::Mutex mutex; /// Для доступа и модификации разделяемых объектов.
|
||||
|
||||
mutable zkutil::ZooKeeperPtr zookeeper; /// Клиент для ZooKeeper.
|
||||
@ -109,10 +96,6 @@ struct ContextShared
|
||||
|
||||
~ContextShared()
|
||||
{
|
||||
#ifndef DBMS_CLIENT
|
||||
LOG_INFO(log, "Uninitializing shared context.");
|
||||
#endif
|
||||
|
||||
try
|
||||
{
|
||||
shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user