From e68621cd711334e66f7a07c36ad946176e81d44a Mon Sep 17 00:00:00 2001 From: JiahuaChen Date: Tue, 4 Jan 2022 11:11:49 +0800 Subject: [PATCH] Fix swallow ret when rollback replay add partition failure --- src/storage/ob_partition_meta_redo_module.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storage/ob_partition_meta_redo_module.cpp b/src/storage/ob_partition_meta_redo_module.cpp index bec9ddbf8..eb8a830b4 100644 --- a/src/storage/ob_partition_meta_redo_module.cpp +++ b/src/storage/ob_partition_meta_redo_module.cpp @@ -929,6 +929,7 @@ int ObPartitionMetaRedoModule::replay_add_partition_slog(const ObRedoModuleRepla LOG_INFO("replay base storage log::add_partition", K(param), K(log_entry), K(sub_type), K(ret)); if (OB_FAIL(ret) && NULL != ptt && REDO_LOG_ADD_PARTITION_TO_PG != sub_type) { + int origin_ret = ret; // remove from pg_mgr if (is_ptt_in_mgr) { ObIPartitionGroupGuard partition_guard; @@ -945,6 +946,7 @@ int ObPartitionMetaRedoModule::replay_add_partition_slog(const ObRedoModuleRepla cp_fty_->free(ptt); } ptt = NULL; + ret = origin_ret; } return ret; } -- GitLab