Fix rebuild while reboot observer core bug

This commit is contained in:
godyangfight
2023-03-15 08:13:45 +00:00
committed by ob-robot
parent 25d104df14
commit ed4e8ef8d9
2 changed files with 9 additions and 0 deletions

View File

@ -1230,6 +1230,10 @@ int ObLS::finish_slog_replay()
// so skip the following steps, otherwise load_ls_inner_tablet maybe encounter error.
} else if (OB_FAIL(start())) {
LOG_WARN("ls can not start to work", K(ret));
} else if (ObMigrationStatus::OB_MIGRATION_STATUS_REBUILD == new_migration_status) {
if (OB_FAIL(offline_())) {
LOG_WARN("failed to offline", K(ret), KPC(this));
}
} else if (is_enable_for_restore()) {
if (OB_FAIL(offline_())) {
LOG_WARN("failed to offline", K(ret), KPC(this));