From 599a9bbf8f4bb1152a86a227a5740b9e1e6a1aa2 Mon Sep 17 00:00:00 2001 From: seuwebber Date: Thu, 3 Nov 2022 05:36:08 +0000 Subject: [PATCH] [to #44458256]fix bug replace object type --- src/rootserver/ob_ddl_operator.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/rootserver/ob_ddl_operator.cpp b/src/rootserver/ob_ddl_operator.cpp index c2c3760f84..65b4368234 100644 --- a/src/rootserver/ob_ddl_operator.cpp +++ b/src/rootserver/ob_ddl_operator.cpp @@ -8609,10 +8609,6 @@ int ObDDLOperator::create_udt(ObUDTTypeInfo &udt_info, CK (OB_NOT_NULL(obj_info)); // set object body id OX (obj_info->set_coll_type(new_udt_id)); - // If it is a create body operation, the function declaration of spec needs to be deleted first - if (FAILEDx(del_routines_in_udt(udt_info, trans, schema_guard))) { - LOG_WARN("failed to delete object routines", K(ret)); - } // udt_info.set_type_id(new_udt_id); } udt_info.set_schema_version(new_schema_version); @@ -8639,11 +8635,7 @@ int ObDDLOperator::create_udt(ObUDTTypeInfo &udt_info, int64_t new_schema_version = OB_INVALID_VERSION; OZ (schema_service_.gen_new_schema_version(tenant_id, new_schema_version)); OX (routine_info.set_schema_version(new_schema_version)); - // OZ (schema_service->get_routine_sql_service().update_routine(routine_info, &trans)); - if (FAILEDx(schema_service->get_routine_sql_service().create_routine(routine_info, - &trans, NULL))) { - LOG_WARN("insert routine info failed", K(routine_info), K(ret)); - } + OZ (schema_service->get_routine_sql_service().update_routine(routine_info, &trans)); } } } -- GitLab