ClickHouse/src/Coordination/KeeperConstants.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
619 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
{
2022-07-22 10:55:13 +00:00
ZOOKEEPER_COMPATIBLE = 0,
2022-09-16 12:00:35 +00:00
WITH_FILTERED_LIST,
WITH_MULTI_READ
2022-07-19 08:51:12 +00:00
};
2022-09-16 12:00:35 +00:00
inline constexpr auto current_keeper_api_version = KeeperApiVersion::WITH_MULTI_READ;
2022-07-19 08:51:12 +00:00
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>;
2022-07-22 10:55:13 +00:00
const std::vector<PathWithData> child_system_paths_with_data
2022-07-22 08:07:38 +00:00
{
{keeper_api_version_path, toString(static_cast<uint8_t>(current_keeper_api_version))}
};
2022-07-19 08:51:12 +00:00
}