reduce global index scheduler sleep time

This commit is contained in:
YoungYang0820 2021-12-19 20:31:22 +08:00 committed by LINxiansheng
parent c371a17fe0
commit d663911730

View File

@ -3378,11 +3378,7 @@ void ObGlobalIndexBuilder::run3()
{
int64_t task_cnt = 0;
int tmp_ret = get_task_count_in_lock(task_cnt);
if (task_cnt <= 0 || OB_SUCCESS != tmp_ret) {
idling_.idle(10 * 1000000);
} else {
idling_.idle(1 * 1000000);
}
idling_.idle(1 * 100000);
};
ObClusterType cluster_type = ObClusterInfoGetter::get_cluster_type_v2();
if (PRIMARY_CLUSTER != cluster_type) {