From 29c639ea68dbc447e044668d56dd57c2066d0b17 Mon Sep 17 00:00:00 2001 From: godyangfight Date: Mon, 23 Oct 2023 02:48:05 +0000 Subject: [PATCH] allow to read when ls migration in HOLD or ls migration in NONE status --- src/storage/ls/ob_ls_tablet_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/ls/ob_ls_tablet_service.cpp b/src/storage/ls/ob_ls_tablet_service.cpp index 48d53909c..c25ee5986 100755 --- a/src/storage/ls/ob_ls_tablet_service.cpp +++ b/src/storage/ls/ob_ls_tablet_service.cpp @@ -5910,7 +5910,8 @@ int ObLSTabletService::set_allow_to_read_(ObLS *ls) } else { 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 + } else if ((ObMigrationStatus::OB_MIGRATION_STATUS_NONE != migration_status + && ObMigrationStatus::OB_MIGRATION_STATUS_HOLD != migration_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));