Build fix

This commit is contained in:
Antonio Andelic 2023-06-09 13:34:27 +00:00
parent 07582d56f3
commit b8b70d78e1
4 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
option (ENABLE_AZURE_BLOB_STORAGE "Enable Azure blob storage" ${ENABLE_LIBRARIES})
if (NOT ENABLE_AZURE_BLOB_STORAGE OR BUILD_STANDALONE_KEEPER OR OS_FREEBSD OR ARCH_PPC64LE)
if (NOT ENABLE_AZURE_BLOB_STORAGE OR OS_FREEBSD OR ARCH_PPC64LE)
message(STATUS "Not using Azure blob storage")
return()
endif()

View File

@ -43,6 +43,7 @@ if (BUILD_STANDALONE_KEEPER)
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperDispatcher.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperLogStore.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperServer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperContext.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperSnapshotManager.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperSnapshotManagerS3.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/KeeperStateMachine.cpp

View File

@ -20,11 +20,14 @@ IMPLEMENT_SETTING_ENUM(KeeperApiVersion, ErrorCodes::BAD_ARGUMENTS,
{"WITH_MULTI_READ", KeeperApiVersion::WITH_MULTI_READ},
{"WITH_CHECK_NOT_EXISTS", KeeperApiVersion::WITH_CHECK_NOT_EXISTS}});
void KeeperContext::initialize(const Poco::Util::AbstractConfiguration & config)
KeeperContext::KeeperContext()
{
for (const auto & [path, data] : child_system_paths_with_data)
system_nodes_with_data[std::string{path}] = data;
}
void KeeperContext::initialize(const Poco::Util::AbstractConfiguration & config)
{
if (config.has("keeper_server.api_version"))
{
auto version_string = config.getString("keeper_server.api_version");

View File

@ -7,6 +7,8 @@ namespace DB
struct KeeperContext
{
KeeperContext();
void initialize(const Poco::Util::AbstractConfiguration & config);
enum class Phase : uint8_t