fix expected_task_load of split_task_range equals to 0.

This commit is contained in:
obdev
2023-06-01 13:53:21 +00:00
committed by ob-robot
parent 2bde3becf7
commit 2a28ee0b5c
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ int ObComplementDataParam::split_task_ranges(
ObArrayArray<ObStoreRange> multi_range_split_array;
ObParallelBlockRangeTaskParams params;
params.parallelism_ = hint_parallelism;
params.expected_task_load_ = tablet_size / 1024 / 1024;
params.expected_task_load_ = tablet_size / 1024 / 1024 <= 0 ? sql::OB_EXPECTED_TASK_LOAD : tablet_size / 1024 / 1024;
if (OB_FAIL(ranges.push_back(range))) {
LOG_WARN("push back range failed", K(ret));
} else if (OB_FAIL(tablet_service->get_multi_ranges_cost(tablet_id,