diff --git a/src/share/ob_rpc_struct.cpp b/src/share/ob_rpc_struct.cpp index ec76aa598f..bddf93b884 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 8802b18dfd..3ca8c0eabd 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