[CP] create ls check offline_scn
This commit is contained in:
@ -7622,13 +7622,14 @@ public:
|
||||
ObGetLSReplayedScnRes(): tenant_id_(OB_INVALID_TENANT_ID),
|
||||
ls_id_(),
|
||||
cur_readable_scn_(share::SCN::min_scn()),
|
||||
offline_scn_(),
|
||||
self_addr_() {}
|
||||
~ObGetLSReplayedScnRes() {}
|
||||
bool is_valid() const;
|
||||
int init(const uint64_t tenant_id, const share::ObLSID &ls_id, const share::SCN &cur_readable_scn,
|
||||
const common::ObAddr &server);
|
||||
const share::SCN &offline_scn, const common::ObAddr &server);
|
||||
int assign(const ObGetLSReplayedScnRes &other);
|
||||
TO_STRING_KV(K_(tenant_id), K_(ls_id), K_(cur_readable_scn));
|
||||
TO_STRING_KV(K_(tenant_id), K_(ls_id), K_(cur_readable_scn), K_(offline_scn), K(self_addr_));
|
||||
uint64_t get_tenant_id() const
|
||||
{
|
||||
return tenant_id_;
|
||||
@ -7645,12 +7646,18 @@ public:
|
||||
{
|
||||
return self_addr_;
|
||||
}
|
||||
share::SCN get_offline_scn() const
|
||||
{
|
||||
return offline_scn_;
|
||||
}
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObGetLSReplayedScnRes);
|
||||
private:
|
||||
uint64_t tenant_id_;
|
||||
share::ObLSID ls_id_;
|
||||
share::SCN cur_readable_scn_;
|
||||
share::SCN offline_scn_;//add in 4.2.2.0
|
||||
common::ObAddr self_addr_;//add in 4.3.0
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user