Fix transfer with migrate ls return sstable not exist bug.

This commit is contained in:
godyangfight
2023-06-29 13:12:31 +00:00
committed by ob-robot
parent 379fbf754c
commit ac0ac0671b
3 changed files with 3 additions and 7 deletions

View File

@ -5854,8 +5854,7 @@ int ObLSTabletService::set_allow_to_read_(ObLS *ls)
if (OB_FAIL(ls->get_migration_and_restore_status(migration_status, restore_status))) {
LOG_WARN("failed to get ls migration and restore status", K(ret), KPC(ls));
} else if (ObMigrationStatus::OB_MIGRATION_STATUS_NONE != migration_status
&& ObLSRestoreStatus::RESTORE_MAJOR_DATA != restore_status
&& ObLSRestoreStatus::RESTORE_NONE != restore_status) {
|| ObLSRestoreStatus::RESTORE_NONE != restore_status) {
allow_to_read_mgr_.disable_to_read();
FLOG_INFO("set ls do not allow to read", KPC(ls), K(migration_status), K(restore_status));
} else {