dbms: pulling logs at startup for better calculation of delays [#METR-17573].

This commit is contained in:
Alexey Milovidov 2016-01-19 20:17:22 +03:00
parent 84f4f31892
commit fc951a9304

View File

@ -256,6 +256,8 @@ StorageReplicatedMergeTree::StorageReplicatedMergeTree(
database_name + "." + table_name + " (ReplicatedMergeTreeQueue)",
data.getDataParts(), current_zookeeper);
queue.pullLogsToQueue(current_zookeeper, nullptr);
/// В этом потоке реплика будет активирована.
restarting_thread.reset(new ReplicatedMergeTreeRestartingThread(*this));
}