fix create ls member_list

Co-authored-by: maosy <630014370@qq.com>
This commit is contained in:
obdev
2023-01-28 13:51:49 +08:00
committed by ob-robot
parent 392e6bad5c
commit 735401c8d7
4 changed files with 25 additions and 7 deletions

View File

@ -2503,23 +2503,29 @@ struct ObCreateLSResult
{
OB_UNIS_VERSION(1);
public:
ObCreateLSResult(): ret_(common::OB_SUCCESS) {}
ObCreateLSResult(): ret_(common::OB_SUCCESS), addr_() {}
~ObCreateLSResult() {}
bool is_valid() const;
int assign(const ObCreateLSResult &other);
TO_STRING_KV(K_(ret));
void set_result(const int ret)
void init(const int ret, const ObAddr &addr)
{
ret_ = ret;
addr_ = addr;
}
TO_STRING_KV(K_(ret), K_(addr));
int get_result() const
{
return ret_;
}
const ObAddr &get_addr() const
{
return addr_;
}
private:
DISALLOW_COPY_AND_ASSIGN(ObCreateLSResult);
private:
int ret_;
ObAddr addr_;//for async rpc, dests and results not one-by-one mapping
};
struct ObSetMemberListArgV2