mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
Fix background moves start
This commit is contained in:
parent
d126aa8a09
commit
ce8ee01d75
@ -108,8 +108,7 @@ void StorageMergeTree::startup()
|
||||
try
|
||||
{
|
||||
background_executor.start();
|
||||
if (areBackgroundMovesNeeded())
|
||||
background_moves_executor.start();
|
||||
startBackgroundMovesIfNeeded();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -1465,6 +1464,7 @@ MutationCommands StorageMergeTree::getFirtsAlterMutationCommandsForPart(const Da
|
||||
|
||||
void StorageMergeTree::startBackgroundMovesIfNeeded()
|
||||
{
|
||||
if (areBackgroundMovesNeeded())
|
||||
background_moves_executor.start();
|
||||
}
|
||||
|
||||
|
@ -3483,9 +3483,7 @@ void StorageReplicatedMergeTree::startup()
|
||||
/// If we don't separate create/start steps, race condition will happen
|
||||
/// between the assignment of queue_task_handle and queueTask that use the queue_task_handle.
|
||||
background_executor.start();
|
||||
if (areBackgroundMovesNeeded())
|
||||
background_moves_executor.start();
|
||||
|
||||
startBackgroundMovesIfNeeded();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@ -5984,6 +5982,7 @@ MutationCommands StorageReplicatedMergeTree::getFirtsAlterMutationCommandsForPar
|
||||
|
||||
void StorageReplicatedMergeTree::startBackgroundMovesIfNeeded()
|
||||
{
|
||||
if (areBackgroundMovesNeeded())
|
||||
background_moves_executor.start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user