ClickHouse/src/Coordination/KeeperConstants.h

26 lines
611 B
C++
Raw Normal View History

2022-07-19 08:51:12 +00:00
#pragma once
2022-07-22 08:07:38 +00:00
#include <IO/WriteHelpers.h>
2022-07-19 08:51:12 +00:00
namespace DB
{
enum class KeeperApiVersion : uint8_t
{
V0 = 0, // ZooKeeper compatible version
V1 // added FilteredList request
};
inline constexpr auto current_keeper_api_version = KeeperApiVersion::V1;
2022-07-22 08:07:38 +00:00
const std::string keeper_system_path = "/keeper";
const std::string keeper_api_version_path = keeper_system_path + "/api_version";
using PathWithData = std::pair<std::string_view, std::string>;
const std::vector<PathWithData> data_for_system_paths
{
{keeper_api_version_path, toString(static_cast<uint8_t>(current_keeper_api_version))}
};
2022-07-19 08:51:12 +00:00
}