fix build

This commit is contained in:
Alexander Tokmakov 2024-02-16 18:27:22 +01:00
parent 03ff171922
commit b513f1d456
2 changed files with 3 additions and 11 deletions

View File

@ -72,9 +72,9 @@ static void setReplicatedEngine(ASTCreateQuery * create_query, ContextPtr contex
auto * storage = create_query->storage;
/// Get replicated engine
const auto & config = context->getConfigRef();
String replica_path = StorageReplicatedMergeTree::getDefaultZooKeeperPath(config);
String replica_name = StorageReplicatedMergeTree::getDefaultReplicaName(config);
const auto & server_settings = args.getContext()->getServerSettings();
String replica_path = server_settings.default_replica_path;
String replica_name = server_settings.default_replica_name;
auto args = std::make_shared<ASTExpressionList>();
args->children.push_back(std::make_shared<ASTLiteral>(replica_path));

View File

@ -232,14 +232,6 @@ public:
/// Checks ability to use granularity
bool canUseAdaptiveGranularity() const override;
/// Returns the default path to the table in ZooKeeper.
/// It's used if not set in engine's arguments while creating a replicated table.
static String getDefaultReplicaPath(const ContextPtr & context_);
/// Returns the default replica name in ZooKeeper.
/// It's used if not set in engine's arguments while creating a replicated table.
static String getDefaultReplicaName(const ContextPtr & context_);
/// Modify a CREATE TABLE query to make a variant which must be written to a backup.
void adjustCreateQueryForBackup(ASTPtr & create_query) const override;