mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 10:04:06 +00:00
Merge
This commit is contained in:
parent
c5c63b6111
commit
cdc937b31a
@ -253,7 +253,7 @@ void updateStat(int time)
|
||||
|
||||
/// выбрать кого мерджить, оценить время и добавить событие об окончании
|
||||
bool makeMerge(int cur_time) {
|
||||
if (getThreads(data_parts) >= settings.merging_threads) return 0;
|
||||
if (getThreads(data_parts) >= DBMS_DEFAULT_BACKGROUND_POOL_SIZE) return 0;
|
||||
if (mergeScheduled == 0) return 0;
|
||||
mergeScheduled --;
|
||||
std::vector<DataPtr> e;
|
||||
|
Loading…
Reference in New Issue
Block a user