mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
fix build
This commit is contained in:
parent
03ff171922
commit
b513f1d456
@ -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));
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user