[CP] fix high cpu usage of backup service during restart

This commit is contained in:
wxhwang
2024-02-07 04:10:48 +00:00
committed by ob-robot
parent dc6f031b16
commit da70d2c14f
2 changed files with 7 additions and 2 deletions

View File

@ -61,10 +61,11 @@ int ObBackupBaseService::create(const char* thread_name, ObBackupBaseService &te
} else if (OB_FAIL(thread_cond_.init(event_no))) {
LOG_WARN("fail to init thread cond", K(ret), K(event_no));
} else {
stop();
thread_name_ = thread_name;
wakeup_cnt_ = 0;
is_created_ = true;
stop();
LOG_INFO("[BACKUP_SERVICE] thread create", K(tg_id_), K(thread_name_));
}
return ret;
}