mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-28 11:21:09 +00:00
Avoid herd effect in ReplicatedMergeTreeCleanupThread (continued) [#CLICKHOUSE-2]
This commit is contained in:
parent
6dc45af5ae
commit
62ccbba0b7
2
contrib/poco
vendored
2
contrib/poco
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 930a7ec1154f4f9711edfb4b4a39f9fff2a5bbb5
|
Subproject commit a107b0c9cee109fe0abfbf509df3c78a1e0c05fa
|
@ -27,8 +27,8 @@ void ReplicatedMergeTreeCleanupThread::run()
|
|||||||
{
|
{
|
||||||
setThreadName("ReplMTCleanup");
|
setThreadName("ReplMTCleanup");
|
||||||
|
|
||||||
const auto CLEANUP_SLEEP_MS = (storage.data.settings.cleanup_delay_period
|
const auto CLEANUP_SLEEP_MS = storage.data.settings.cleanup_delay_period * 1000
|
||||||
+ std::uniform_int_distribution<UInt64>(0, storage.data.settings.cleanup_delay_period_random_add)(rng)) * 1000;
|
+ std::uniform_int_distribution<UInt64>(0, storage.data.settings.cleanup_delay_period_random_add * 1000)(rng);
|
||||||
|
|
||||||
while (!storage.shutdown_called)
|
while (!storage.shutdown_called)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user