mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
More fixes
This commit is contained in:
parent
23d3d894e6
commit
34017c942e
@ -23,12 +23,12 @@ public:
|
||||
TableLockHolder table_lock_holder_,
|
||||
Callback && task_result_callback_)
|
||||
: storage(storage_)
|
||||
, metadata_snapshot(metadata_snapshot_)
|
||||
, metadata_snapshot(std::move(metadata_snapshot_))
|
||||
, deduplicate(deduplicate_)
|
||||
, deduplicate_by_columns(deduplicate_by_columns_)
|
||||
, merge_mutate_entry(merge_mutate_entry_)
|
||||
, table_lock_holder(table_lock_holder_)
|
||||
, task_result_callback(task_result_callback_) {}
|
||||
, deduplicate_by_columns(std::move(deduplicate_by_columns_))
|
||||
, merge_mutate_entry(std::move(merge_mutate_entry_))
|
||||
, table_lock_holder(std::move(table_lock_holder_))
|
||||
, task_result_callback(std::forward<Callback>(task_result_callback_)) {}
|
||||
|
||||
bool executeStep() override;
|
||||
|
||||
|
@ -27,13 +27,13 @@ public:
|
||||
StorageMergeTree & storage_,
|
||||
StorageMetadataPtr metadata_snapshot_,
|
||||
MergeMutateSelectedEntryPtr merge_mutate_entry_,
|
||||
TableLockHolder & table_lock_holder_,
|
||||
TableLockHolder table_lock_holder_,
|
||||
Callback && task_result_callback_)
|
||||
: storage(storage_)
|
||||
, metadata_snapshot(metadata_snapshot_)
|
||||
, merge_mutate_entry(merge_mutate_entry_)
|
||||
, table_lock_holder(table_lock_holder_)
|
||||
, task_result_callback(task_result_callback_) {}
|
||||
, metadata_snapshot(std::move(metadata_snapshot_))
|
||||
, merge_mutate_entry(std::move(merge_mutate_entry_))
|
||||
, table_lock_holder(std::move(table_lock_holder_))
|
||||
, task_result_callback(std::forward<Callback>(task_result_callback_)) {}
|
||||
|
||||
bool executeStep() override;
|
||||
|
||||
@ -60,7 +60,7 @@ private:
|
||||
|
||||
StorageMetadataPtr metadata_snapshot;
|
||||
MergeMutateSelectedEntryPtr merge_mutate_entry{nullptr};
|
||||
TableLockHolder & table_lock_holder;
|
||||
TableLockHolder table_lock_holder;
|
||||
|
||||
FutureMergedMutatedPartPtr future_part{nullptr};
|
||||
std::unique_ptr<Stopwatch> stopwatch;
|
||||
|
@ -1035,7 +1035,8 @@ bool StorageMergeTree::scheduleDataProcessingJob(BackgroundJobsAssignee & assign
|
||||
|
||||
if (merge_entry)
|
||||
{
|
||||
auto task = std::make_shared<MergePlainMergeTreeTask>(*this, metadata_snapshot, false, Names{}, merge_entry, share_lock, common_assignee_trigger);
|
||||
auto task = std::make_shared<MergePlainMergeTreeTask>(
|
||||
*this, metadata_snapshot, false, Names{}, merge_entry, share_lock, common_assignee_trigger);
|
||||
assignee.scheduleMergeMutateTask(task);
|
||||
return true;
|
||||
}
|
||||
@ -1054,7 +1055,8 @@ bool StorageMergeTree::scheduleDataProcessingJob(BackgroundJobsAssignee & assign
|
||||
}
|
||||
|
||||
bool scheduled = false;
|
||||
if (time_after_previous_cleanup_temporary_directories.compareAndRestartDeferred(getContext()->getSettingsRef().merge_tree_clear_old_temporary_directories_interval_seconds))
|
||||
if (time_after_previous_cleanup_temporary_directories.compareAndRestartDeferred(
|
||||
getContext()->getSettingsRef().merge_tree_clear_old_temporary_directories_interval_seconds))
|
||||
{
|
||||
assignee.scheduleMergeMutateTask(ExecutableLambdaAdapter::create(
|
||||
[this, share_lock] ()
|
||||
@ -1064,7 +1066,8 @@ bool StorageMergeTree::scheduleDataProcessingJob(BackgroundJobsAssignee & assign
|
||||
}, common_assignee_trigger, getStorageID()));
|
||||
scheduled = true;
|
||||
}
|
||||
if (auto lock = time_after_previous_cleanup_parts.compareAndRestartDeferred(getContext()->getSettingsRef().merge_tree_clear_old_parts_interval_seconds))
|
||||
if (auto lock = time_after_previous_cleanup_parts.compareAndRestartDeferred(
|
||||
getContext()->getSettingsRef().merge_tree_clear_old_parts_interval_seconds))
|
||||
{
|
||||
assignee.scheduleMergeMutateTask(ExecutableLambdaAdapter::create(
|
||||
[this, share_lock] ()
|
||||
|
Loading…
Reference in New Issue
Block a user