mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
Add a comment with some thoughts
This commit is contained in:
parent
edb871979a
commit
e0f52965e5
@ -100,6 +100,8 @@ DatabaseReplicated::DatabaseReplicated(
|
||||
// return;
|
||||
}
|
||||
|
||||
// can the zk path exist and no metadata on disk be available at the same moment? if so, in such a case, the db instance must be restored.
|
||||
|
||||
current_zookeeper->createIfNotExists(zookeeper_path, String());
|
||||
current_zookeeper->createIfNotExists(replica_path, String());
|
||||
// TODO what to do?
|
||||
@ -115,6 +117,7 @@ void DatabaseReplicated::createTable(
|
||||
{
|
||||
// try
|
||||
DatabaseOnDisk::createTable(context, table_name, table, query);
|
||||
|
||||
// replicated stuff
|
||||
String statement = getObjectDefinitionFromCreateQuery(query);
|
||||
auto zookeeper = getZooKeeper();
|
||||
|
Loading…
Reference in New Issue
Block a user