提交 1c367fc6 编写于 作者: V Vitaliy Lyudvichenko

Fix DDLLogEntry::CURRENT_VERSION variable issue. [#CLICKHOUSE-5]

上级 6db8da82
......@@ -60,7 +60,7 @@ struct DDLLogEntry
Strings hosts;
String initiator; // optional
static constexpr int CURRENT_VERSION = '1';
static constexpr int CURRENT_VERSION = 1;
String toString()
{
......@@ -68,7 +68,8 @@ struct DDLLogEntry
{
WriteBufferFromString wb(res);
wb << "version: " << CURRENT_VERSION << "\n";
auto version = CURRENT_VERSION;
wb << "version: " << version << "\n";
wb << "query: " << escape << query << "\n";
wb << "hosts: " << hosts << "\n";
wb << "initiator: " << initiator << "\n";
......
......@@ -240,6 +240,13 @@
<task_queue_path>/clickhouse/task_queue</task_queue_path>
</resharding>
<!-- Allow to execute distributed DDL queries (CREATE, DROP, ALTER, RENAME) on cluster.
Works only if ZooKeeper is enabled. Comment it if such functionality isn't required. -->
<distributed_ddl>
<!-- Path in ZooKeeper to queue with DDL queries -->
<path>/clickhouse/task_queue/ddl</path>
</distributed_ddl>
<!-- Settings to fine tune MergeTree tables. See documentation in source code, in MergeTreeSettings.h -->
<!--
<merge_tree>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册