From 90253a82647ef55579d3da673f866709fcd10c8e Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 20 Jul 2022 11:24:47 +0800 Subject: [PATCH] [CP] fix a bug of swallowing ret code in drop_partition_info_for_nontemplate --- src/share/schema/ob_partition_sql_helper.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/share/schema/ob_partition_sql_helper.cpp b/src/share/schema/ob_partition_sql_helper.cpp index 7656f73873..2f7b5a824f 100644 --- a/src/share/schema/ob_partition_sql_helper.cpp +++ b/src/share/schema/ob_partition_sql_helper.cpp @@ -2040,7 +2040,6 @@ int ObDropIncPartHelper::drop_partition_info_for_nontemplate() if (OB_SUCC(ret) && inc_sub_part_num > 0) { int64_t affected_rows = 0; if (OB_FAIL(sql_client_.write(exec_tenant_id, sub_part_history_sql.ptr(), affected_rows))) { - ret = OB_ERR_UNEXPECTED; LOG_WARN("execute sql failed", K(ret), K(sub_part_history_sql)); } else if (affected_rows != inc_sub_part_num) { ret = OB_ERR_UNEXPECTED; -- GitLab