提交 05accbdc 编写于 作者: A Alexey Milovidov

Removed cyclic dependency [#DEVTOOLS-3381].

上级 1cd217ba
......@@ -55,6 +55,7 @@ add_headers_and_sources(dbms src/Interpreters)
add_headers_and_sources(dbms src/Interpreters/ClusterProxy)
add_headers_and_sources(dbms src/Common)
add_headers_and_sources(dbms src/Common/HashTable)
add_headers_and_sources(dbms src/Common/ZooKeeper)
add_headers_and_sources(dbms src/IO)
add_headers_and_sources(dbms src/Columns)
add_headers_and_sources(dbms src/Storages)
......@@ -168,11 +169,11 @@ endif()
target_link_libraries (dbms
common
zkutil
${MYSQLXX_LIBRARY}
cityhash farmhash metrohash
${LZ4_LIBRARY}
${ZSTD_LIBRARY}
${ZOOKEEPER_LIBRARY}
string_utils
${DOUBLE_CONVERSION_LIBRARY}
${ZLIB_LIBRARIES}
......
add_subdirectory(ZooKeeper)
if (ENABLE_TESTS)
add_subdirectory (tests)
endif ()
......@@ -10,7 +10,7 @@
#include <Poco/DOM/Comment.h>
#include <Poco/Util/XMLConfiguration.h>
#include <zkutil/ZooKeeperNodeCache.h>
#include <Common/ZooKeeper/ZooKeeperNodeCache.h>
using namespace Poco::XML;
......
if (ENABLE_TESTS)
add_subdirectory (tests)
endif ()
#pragma once
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <functional>
namespace zkutil
......
#pragma once
#include <zkutil/ZooKeeperHolder.h>
#include <Common/ZooKeeper/ZooKeeperHolder.h>
namespace zkutil
{
......
#pragma once
#include <Common/Exception.h>
#include <zkutil/Types.h>
#include <Common/ZooKeeper/Types.h>
#include <Common/ProfileEvents.h>
......
#pragma once
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <functional>
#include <memory>
#include <common/logger_useful.h>
......
#include <zkutil/Lock.h>
#include <Common/ZooKeeper/Lock.h>
using namespace zkutil;
......
#pragma once
#include <zkutil/ZooKeeperHolder.h>
#include <Common/ZooKeeper/ZooKeeperHolder.h>
#include <common/logger_useful.h>
#include <Common/Exception.h>
......
#include <zkutil/RWLock.h>
#include <Common/ZooKeeper/RWLock.h>
#include <Common/StringUtils.h>
#include <algorithm>
#include <iterator>
......
#pragma once
#include <zkutil/ZooKeeper.h>
#include <zkutil/Common.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/Common.h>
#include <Common/Exception.h>
#include <Poco/Event.h>
#include <string>
......
#include <zkutil/SingleBarrier.h>
#include <zkutil/RWLock.h>
#include <Common/ZooKeeper/SingleBarrier.h>
#include <Common/ZooKeeper/RWLock.h>
#include <Common/getFQDNOrHostName.h>
#include <Common/Exception.h>
#include <Common/Stopwatch.h>
......
#pragma once
#include <zkutil/Common.h>
#include <Common/ZooKeeper/Common.h>
#include <string>
#include <functional>
......
#include <functional>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <common/logger_useful.h>
#include <Common/ProfileEvents.h>
#include <Common/StringUtils.h>
......
#pragma once
#include <zkutil/Types.h>
#include <zkutil/KeeperException.h>
#include <Common/ZooKeeper/Types.h>
#include <Common/ZooKeeper/KeeperException.h>
#include <Poco/Util/LayeredConfiguration.h>
#include <unordered_set>
#include <future>
......
#include <zkutil/ZooKeeperHolder.h>
#include <Common/ZooKeeper/ZooKeeperHolder.h>
using namespace zkutil;
......
#pragma once
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <mutex>
#include <boost/noncopyable.hpp>
......
#include <zkutil/ZooKeeperNodeCache.h>
#include <Common/ZooKeeper/ZooKeeperNodeCache.h>
namespace zkutil
{
......
......@@ -6,8 +6,8 @@
#include <memory>
#include <experimental/optional>
#include <Poco/Event.h>
#include <zkutil/ZooKeeper.h>
#include <zkutil/Common.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/Common.h>
namespace DB
{
......
add_executable(zkutil_test_commands zkutil_test_commands.cpp)
target_link_libraries(zkutil_test_commands zkutil dbms)
target_link_libraries(zkutil_test_commands dbms)
add_executable(zkutil_test_lock zkutil_test_lock.cpp)
target_link_libraries(zkutil_test_lock zkutil dbms)
target_link_libraries(zkutil_test_lock dbms)
add_executable(zkutil_expiration_test zkutil_expiration_test.cpp)
target_link_libraries(zkutil_expiration_test zkutil dbms)
target_link_libraries(zkutil_expiration_test dbms)
add_executable(zkutil_test_async zkutil_test_async.cpp)
target_link_libraries(zkutil_test_async zkutil dbms)
target_link_libraries(zkutil_test_async dbms)
add_executable(zkutil_zookeeper_holder zkutil_zookeeper_holder.cpp)
target_link_libraries(zkutil_zookeeper_holder zkutil dbms)
target_link_libraries(zkutil_zookeeper_holder dbms)
add_executable (zk_many_watches_reconnect zk_many_watches_reconnect.cpp)
target_link_libraries (zk_many_watches_reconnect zkutil dbms)
target_link_libraries (zk_many_watches_reconnect dbms)
#include <Common/ConfigProcessor.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Poco/Event.h>
#include <iostream>
......
#include <iostream>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Poco/ConsoleChannel.h>
......
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <IO/ReadHelpers.h>
......
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <iostream>
#include <unistd.h>
......
#include <iostream>
#include <zkutil/Lock.h>
#include <Common/ZooKeeper/Lock.h>
int main()
{
......
#include <zkutil/ZooKeeperHolder.h>
#include <Common/ZooKeeper/ZooKeeperHolder.h>
#include <iostream>
#include <Poco/Util/Application.h>
......
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Interpreters/Context.h>
#include <Common/escapeForFileName.h>
#include <Common/SipHash.h>
......
......@@ -44,7 +44,7 @@
#include <Databases/IDatabase.h>
#include <Common/ConfigProcessor.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <common/logger_useful.h>
......
......@@ -28,8 +28,8 @@
#include <Columns/ColumnString.h>
#include <Columns/ColumnArray.h>
#include <zkutil/ZooKeeper.h>
#include <zkutil/Lock.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/Lock.h>
#include <Poco/Timestamp.h>
#include <experimental/optional>
......
......@@ -41,7 +41,7 @@
#include <Databases/DatabaseFactory.h>
#include <Databases/IDatabase.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
namespace DB
{
......
......@@ -48,4 +48,4 @@ target_link_libraries (in_join_subqueries_preprocessor dbms)
add_check(in_join_subqueries_preprocessor)
add_executable (users users.cpp)
target_link_libraries (users dbms ${Boost_FILESYSTEM_LIBRARY} zkutil dbms)
target_link_libraries (users dbms ${Boost_FILESYSTEM_LIBRARY} dbms)
#pragma once
#include <Common/ConfigProcessor.h>
#include <zkutil/Common.h>
#include <zkutil/ZooKeeperNodeCache.h>
#include <Common/ZooKeeper/Common.h>
#include <Common/ZooKeeper/ZooKeeperNodeCache.h>
#include <time.h>
#include <string>
......
......@@ -8,7 +8,7 @@
#include <Poco/AutoPtr.h>
#include <Poco/Util/XMLConfiguration.h>
#include <zkutil/ZooKeeperNodeCache.h>
#include <Common/ZooKeeper/ZooKeeperNodeCache.h>
#include <Common/ConfigProcessor.h>
#include <Common/Exception.h>
......
......@@ -10,8 +10,8 @@
#include <common/ApplicationServerExt.h>
#include <common/ErrorHandlers.h>
#include <ext/scope_guard.h>
#include <zkutil/ZooKeeper.h>
#include <zkutil/ZooKeeperNodeCache.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeperNodeCache.h>
#include <Common/Macros.h>
#include <Common/StringUtils.h>
#include <Common/getFQDNOrHostName.h>
......
#pragma once
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/Exception.h>
#include <IO/ReadHelpers.h>
......
#pragma once
#include <thread>
#include <zkutil/Types.h>
#include <Common/ZooKeeper/Types.h>
#include <Core/Types.h>
#include <common/logger_useful.h>
......
#include <zkutil/Types.h>
#include <Common/ZooKeeper/Types.h>
#include <Storages/MergeTree/ReplicatedMergeTreeLogEntry.h>
#include <IO/Operators.h>
......
......@@ -2,7 +2,7 @@
#include <Storages/MergeTree/ActiveDataPartSet.h>
#include <Storages/MergeTree/MergeTreeData.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
namespace DB
......
......@@ -7,7 +7,7 @@
#include <IO/WriteBuffer.h>
#include <IO/WriteBufferFromString.h>
#include <IO/Operators.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
namespace DB
......
......@@ -24,7 +24,7 @@
#include <Common/ThreadPool.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Poco/Event.h>
#include <Poco/DirectoryIterator.h>
......
......@@ -4,8 +4,8 @@
#include <Storages/AlterCommands.h>
#include <common/logger_useful.h>
#include <zkutil/RWLock.h>
#include <zkutil/SingleBarrier.h>
#include <Common/ZooKeeper/RWLock.h>
#include <Common/ZooKeeper/SingleBarrier.h>
#include <Poco/Util/LayeredConfiguration.h>
......
#include <zkutil/Types.h>
#include <zkutil/KeeperException.h>
#include <Common/ZooKeeper/Types.h>
#include <Common/ZooKeeper/KeeperException.h>
#include <Core/FieldVisitors.h>
......
......@@ -21,8 +21,8 @@
#include <Storages/MergeTree/RemoteQueryExecutor.h>
#include <Storages/MergeTree/RemotePartChecker.h>
#include <DataTypes/DataTypesNumber.h>
#include <zkutil/ZooKeeper.h>
#include <zkutil/LeaderElection.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/LeaderElection.h>
namespace DB
......
......@@ -10,7 +10,7 @@
#include <Poco/Event.h>
#include <Storages/IStorage.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
namespace Poco { class Logger; }
......
......@@ -11,7 +11,7 @@
#include <Parsers/ASTExpressionList.h>
#include <Parsers/ASTFunction.h>
#include <Interpreters/Context.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
namespace DB
......
......@@ -5,7 +5,6 @@ endif ()
add_subdirectory (libcommon)
add_subdirectory (libpocoext)
add_subdirectory (libzkutil)
add_subdirectory (libdaemon)
if (MYSQL_FOUND)
......
......@@ -9,6 +9,7 @@ add_subdirectory (compressor)
add_subdirectory (iotest)
add_subdirectory (corrector_utf8)
add_subdirectory (config-processor)
add_subdirectory (zookeeper-cli)
add_subdirectory (zookeeper-dump-tree)
add_subdirectory (zookeeper-remove-by-list)
add_subdirectory (zookeeper-create-entry-to-download-part)
......
add_executable (config-processor config-processor.cpp)
target_link_libraries (config-processor dbms zkutil dbms)
target_link_libraries (config-processor dbms)
INSTALL(TARGETS config-processor RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT config-processor)
add_executable(clickhouse-zookeeper-cli zookeeper-cli.cpp)
target_link_libraries(clickhouse-zookeeper-cli zkutil dbms ${LINE_EDITING_LIBS})
target_link_libraries(clickhouse-zookeeper-cli dbms ${LINE_EDITING_LIBS})
INSTALL(TARGETS clickhouse-zookeeper-cli RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse-utils)
#include <zkutil/ZooKeeper.h>
#include <zkutil/KeeperException.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/KeeperException.h>
#include <iostream>
#include <sstream>
#include <Poco/ConsoleChannel.h>
......
add_executable (zookeeper-create-entry-to-download-part main.cpp ${SRCS})
target_link_libraries (zookeeper-create-entry-to-download-part zkutil dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
target_link_libraries (zookeeper-create-entry-to-download-part dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
#include <Storages/MergeTree/ReplicatedMergeTreeLogEntry.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <boost/program_options.hpp>
......
add_executable (zookeeper-dump-tree main.cpp ${SRCS})
target_link_libraries (zookeeper-dump-tree zkutil dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
target_link_libraries (zookeeper-dump-tree dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
......@@ -2,7 +2,7 @@
#include <boost/program_options.hpp>
#include <Common/Exception.h>
#include <Poco/Event.h>
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
/** Outputs paths of all ZK nodes in arbitrary order. Possibly only in specified directory.
......
add_executable (zookeeper-remove-by-list main.cpp ${SRCS})
target_link_libraries (zookeeper-remove-by-list zkutil dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
target_link_libraries (zookeeper-remove-by-list dbms ${Boost_PROGRAM_OPTIONS_LIBRARY})
#include <zkutil/ZooKeeper.h>
#include <Common/ZooKeeper/ZooKeeper.h>
#include <IO/ReadHelpers.h>
#include <IO/ReadBufferFromFileDescriptor.h>
#include <boost/program_options.hpp>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册