Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tavplubix committed Feb 16, 2024
1 parent 03ff171 commit b513f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Databases/DatabaseOrdinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
8 changes: 0 additions & 8 deletions src/Storages/StorageReplicatedMergeTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,6 @@ class StorageReplicatedMergeTree final : public MergeTreeData
/// 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;

Expand Down

0 comments on commit b513f1d

Please sign in to comment.