mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix build
This commit is contained in:
parent
2f9ac9b49c
commit
9d965368a2
@ -245,7 +245,7 @@ bool RestoreCoordinationRemote::acquireInsertingDataForKeeperMap(const String &
|
||||
with_retries.renewZooKeeper(zk);
|
||||
|
||||
/// we need to remove leading '/' from root_zk_path
|
||||
auto normalized_root_zk_path = std::string_view{root_zk_path}.substr(1);
|
||||
auto normalized_root_zk_path = root_zk_path.substr(1);
|
||||
std::string restore_lock_path = fs::path(zookeeper_path) / "keeper_map_tables" / escapeForFileName(normalized_root_zk_path);
|
||||
zk->createAncestors(restore_lock_path);
|
||||
auto code = zk->tryCreate(restore_lock_path, table_unique_id, zkutil::CreateMode::Persistent);
|
||||
|
@ -6,11 +6,6 @@ namespace DB
|
||||
{
|
||||
|
||||
std::string escapeForFileName(const std::string & s)
|
||||
{
|
||||
return escapeForFileName(std::string_view{s});
|
||||
}
|
||||
|
||||
std::string escapeForFileName(std::string_view s)
|
||||
{
|
||||
std::string res;
|
||||
const char * pos = s.data();
|
||||
|
@ -11,7 +11,6 @@ namespace DB
|
||||
*/
|
||||
|
||||
std::string escapeForFileName(const std::string & s);
|
||||
std::string escapeForFileName(std::string_view s);
|
||||
std::string unescapeForFileName(const std::string & s);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user