提交 d6639117 编写于 作者: Y YoungYang0820 提交者: LINGuanRen

reduce global index scheduler sleep time

上级 c371a17f
...@@ -3378,11 +3378,7 @@ void ObGlobalIndexBuilder::run3() ...@@ -3378,11 +3378,7 @@ void ObGlobalIndexBuilder::run3()
{ {
int64_t task_cnt = 0; int64_t task_cnt = 0;
int tmp_ret = get_task_count_in_lock(task_cnt); int tmp_ret = get_task_count_in_lock(task_cnt);
if (task_cnt <= 0 || OB_SUCCESS != tmp_ret) { idling_.idle(1 * 100000);
idling_.idle(10 * 1000000);
} else {
idling_.idle(1 * 1000000);
}
}; };
ObClusterType cluster_type = ObClusterInfoGetter::get_cluster_type_v2(); ObClusterType cluster_type = ObClusterInfoGetter::get_cluster_type_v2();
if (PRIMARY_CLUSTER != cluster_type) { if (PRIMARY_CLUSTER != cluster_type) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册