Skip to content

Commit

Permalink
[CP] fix: rs do_restart failed at ObTTLScheduler::start
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyunlong authored and junye committed Sep 11, 2023
1 parent 7594790 commit 8a9dc4b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/rootserver/ob_root_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,8 @@ int ObRootService::start_service()
LOG_WARN("START_SERVICE: inspect queue start failed", K(ret));
} else if (OB_FAIL(TG_START(lib::TGDefIDs::IdxBuild))) {
LOG_WARN("START_SERVICE: index build thread start failed", K(ret));
} else if (OB_FAIL(ttl_scheduler_.start())) {
LOG_WARN("fail to start ttl scheduler", K(ret));
} else {
ObTaskController::get().allow_next_syslog();
LOG_INFO("START_SERSVICE: start some queue success");
Expand Down Expand Up @@ -5912,15 +5914,6 @@ int ObRootService::do_restart()
}
}

if (OB_SUCC(ret)) {
if (OB_FAIL(ttl_scheduler_.start())) {
LOG_WARN("fail to start ttl scheduler", K(ret));
} else {
ObTaskController::get().allow_next_syslog();
LOG_INFO("START_SERVICE: start ttl scheduler succeed");
}
}

if (OB_SUCC(ret)) {
schema_split_executor_.start();
upgrade_executor_.start();
Expand Down

0 comments on commit 8a9dc4b

Please sign in to comment.