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
|
try
|
||||||
{
|
{
|
||||||
background_executor.start();
|
background_executor.start();
|
||||||
if (areBackgroundMovesNeeded())
|
startBackgroundMovesIfNeeded();
|
||||||
background_moves_executor.start();
|
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
@ -1465,7 +1464,8 @@ MutationCommands StorageMergeTree::getFirtsAlterMutationCommandsForPart(const Da
|
|||||||
|
|
||||||
void StorageMergeTree::startBackgroundMovesIfNeeded()
|
void StorageMergeTree::startBackgroundMovesIfNeeded()
|
||||||
{
|
{
|
||||||
background_moves_executor.start();
|
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
|
/// 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.
|
/// between the assignment of queue_task_handle and queueTask that use the queue_task_handle.
|
||||||
background_executor.start();
|
background_executor.start();
|
||||||
if (areBackgroundMovesNeeded())
|
startBackgroundMovesIfNeeded();
|
||||||
background_moves_executor.start();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
@ -5984,7 +5982,8 @@ MutationCommands StorageReplicatedMergeTree::getFirtsAlterMutationCommandsForPar
|
|||||||
|
|
||||||
void StorageReplicatedMergeTree::startBackgroundMovesIfNeeded()
|
void StorageReplicatedMergeTree::startBackgroundMovesIfNeeded()
|
||||||
{
|
{
|
||||||
background_moves_executor.start();
|
if (areBackgroundMovesNeeded())
|
||||||
|
background_moves_executor.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user