From 59253e749cdeaa4502a25dda2aee001e90ef177a Mon Sep 17 00:00:00 2001 From: swjtu-wenxiang Date: Tue, 20 Feb 2024 03:16:59 +0000 Subject: [PATCH] [to #55037202]ObCreateRoutineArg adds if not exist to occupy space on master. --- src/share/ob_rpc_struct.cpp | 3 ++- src/share/ob_rpc_struct.h | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/share/ob_rpc_struct.cpp b/src/share/ob_rpc_struct.cpp index cb83e3f9b5..0c4d04bad6 100755 --- a/src/share/ob_rpc_struct.cpp +++ b/src/share/ob_rpc_struct.cpp @@ -5777,6 +5777,7 @@ int ObCreateRoutineArg::assign(const ObCreateRoutineArg &other) db_name_ = other.db_name_; is_or_replace_ = other.is_or_replace_; is_need_alter_ = other.is_need_alter_; + with_if_not_exist_ = other.with_if_not_exist_; } return ret; } @@ -5784,7 +5785,7 @@ int ObCreateRoutineArg::assign(const ObCreateRoutineArg &other) OB_SERIALIZE_MEMBER((ObCreateRoutineArg, ObDDLArg), routine_info_, db_name_, is_or_replace_, is_need_alter_, - error_info_, dependency_infos_); + error_info_, dependency_infos_, with_if_not_exist_); bool ObDropRoutineArg::is_valid() const { diff --git a/src/share/ob_rpc_struct.h b/src/share/ob_rpc_struct.h index 3c8120ad76..6be4ebbbfe 100755 --- a/src/share/ob_rpc_struct.h +++ b/src/share/ob_rpc_struct.h @@ -6762,7 +6762,7 @@ struct ObCreateRoutineArg : public ObDDLArg { OB_UNIS_VERSION(1); public: - ObCreateRoutineArg(): routine_info_(), db_name_(), is_or_replace_(false), is_need_alter_(false), error_info_() {} + ObCreateRoutineArg(): routine_info_(), db_name_(), is_or_replace_(false), is_need_alter_(false), error_info_(), with_if_not_exist_(false) {} virtual ~ObCreateRoutineArg() {} bool is_valid() const; int assign(const ObCreateRoutineArg &other); @@ -6771,7 +6771,8 @@ public: K_(is_or_replace), K_(is_need_alter), K_(error_info), - K_(dependency_infos)); + K_(dependency_infos), + K_(with_if_not_exist)); share::schema::ObRoutineInfo routine_info_; common::ObString db_name_; @@ -6779,6 +6780,7 @@ public: bool is_need_alter_; // used in mysql mode share::schema::ObErrorInfo error_info_; common::ObSArray dependency_infos_; + bool with_if_not_exist_; }; struct ObDropRoutineArg : public ObDDLArg