From d1be848098c3ab8fc1755576615746bb555f5bbd Mon Sep 17 00:00:00 2001 From: wjhh2008 Date: Thu, 8 Feb 2024 07:01:24 +0000 Subject: [PATCH] Reserve rpc values --- src/share/ob_rpc_struct.cpp | 4 +++- src/share/ob_rpc_struct.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/share/ob_rpc_struct.cpp b/src/share/ob_rpc_struct.cpp index ec76aa598..bddf93b88 100755 --- a/src/share/ob_rpc_struct.cpp +++ b/src/share/ob_rpc_struct.cpp @@ -4276,6 +4276,7 @@ int ObCreateUserArg::assign(const ObCreateUserArg &other) if_not_exist_ = other.if_not_exist_; creator_id_ = other.creator_id_; primary_zone_ = other.primary_zone_; + is_create_role_ = other.is_create_role_; if (OB_FAIL(ObDDLArg::assign(other))) { LOG_WARN("fail to assign ddl arg", KR(ret)); } else if (OB_FAIL(user_infos_.assign(other.user_infos_))) { @@ -4289,7 +4290,8 @@ OB_SERIALIZE_MEMBER((ObCreateUserArg, ObDDLArg), user_infos_, if_not_exist_, creator_id_, - primary_zone_); + primary_zone_, + is_create_role_); bool ObDropUserArg::is_valid() const { diff --git a/src/share/ob_rpc_struct.h b/src/share/ob_rpc_struct.h index 8802b18df..3ca8c0eab 100755 --- a/src/share/ob_rpc_struct.h +++ b/src/share/ob_rpc_struct.h @@ -5037,7 +5037,7 @@ struct ObCreateUserArg : public ObDDLArg public: ObCreateUserArg() : ObDDLArg(), tenant_id_(common::OB_INVALID_ID), if_not_exist_(false), - creator_id_(common::OB_INVALID_ID), primary_zone_() + creator_id_(common::OB_INVALID_ID), primary_zone_(), is_create_role_(false) {} virtual ~ObCreateUserArg() {} @@ -5051,6 +5051,7 @@ public: common::ObSArray user_infos_; uint64_t creator_id_; common::ObString primary_zone_; // only used in oracle mode + bool is_create_role_; }; struct ObDropUserArg : public ObDDLArg