Fix build

This commit is contained in:
Antonio Andelic 2023-11-15 08:36:24 +00:00
parent 2f9ac9b49c
commit 9d965368a2
3 changed files with 1 additions and 7 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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);
}