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

This commit is contained in:
wxhwang
2023-11-28 14:41:57 +00:00
committed by ob-robot
parent 3038a7794c
commit 41fb7a667b
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;
}