[thread hang] Fine-grained record time in root balance thread

This commit is contained in:
bz0
2021-07-29 20:48:13 +08:00
committed by wangzelin.wzl
parent 79131c0cda
commit 2614023cbf

View File

@ -774,6 +774,7 @@ int ObRootBalancer::non_emergency_balance(int64_t& total_task_cnt)
DEBUG_SYNC(UNIT_BALANCE_BEFORE_PARTITION_BALANCE); DEBUG_SYNC(UNIT_BALANCE_BEFORE_PARTITION_BALANCE);
FOREACH_X(t, all_tenant, OB_SUCCESS == ret) FOREACH_X(t, all_tenant, OB_SUCCESS == ret)
{ {
update_last_run_timestamp();
const uint64_t tenant_id = *t; const uint64_t tenant_id = *t;
// if have enough task in task queue, idle // if have enough task in task queue, idle
if (task_mgr_->is_busy()) { if (task_mgr_->is_busy()) {