mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Merge
This commit is contained in:
parent
897d6fd336
commit
6c4b3e3379
@ -44,6 +44,9 @@ StorageReplicatedMergeTree::StorageReplicatedMergeTree(
|
||||
{
|
||||
if (!zookeeper)
|
||||
{
|
||||
if (!attach)
|
||||
throw Exception("Can't create replicated table without ZooKeeper", ErrorCodes::NO_ZOOKEEPER);
|
||||
|
||||
goReadOnly();
|
||||
return;
|
||||
}
|
||||
@ -1879,6 +1882,9 @@ void StorageReplicatedMergeTree::alter(const AlterCommands & params, const Strin
|
||||
|
||||
void StorageReplicatedMergeTree::drop()
|
||||
{
|
||||
if (!zookeeper)
|
||||
throw Exception("Can't drop replicated table without ZooKeeper", ErrorCodes::NO_ZOOKEEPER);
|
||||
|
||||
shutdown();
|
||||
|
||||
LOG_INFO(log, "Removing replica " << replica_path);
|
||||
|
Loading…
Reference in New Issue
Block a user