Implement of auto refresh location cache

This commit is contained in:
ym0
2021-07-28 17:39:13 +08:00
committed by wangzelin.wzl
parent 12e315115d
commit 418f092462
29 changed files with 1232 additions and 68 deletions

View File

@ -4530,5 +4530,35 @@ OB_SERIALIZE_MEMBER(ObDropRestorePointArg, tenant_id_, name_);
OB_SERIALIZE_MEMBER(ObCheckBuildIndexTaskExistArg, tenant_id_, task_id_, scheduler_id_);
OB_SERIALIZE_MEMBER(ObPartitionBroadcastArg, keys_);
bool ObPartitionBroadcastArg::is_valid() const
{
return keys_.count() > 0;
}
int ObPartitionBroadcastArg::assign(const ObPartitionBroadcastArg& other)
{
int ret = OB_SUCCESS;
if (this == &other) {
} else if (OB_FAIL(keys_.assign(other.keys_))) {
LOG_WARN("fail to assign keys", KR(ret), K(other));
}
return ret;
}
OB_SERIALIZE_MEMBER(ObPartitionBroadcastResult, ret_);
bool ObPartitionBroadcastResult::is_valid() const
{
return true;
}
int ObPartitionBroadcastResult::assign(const ObPartitionBroadcastResult& other)
{
int ret = OB_SUCCESS;
if (this == &other) {
} else {
ret_ = other.ret_;
}
return ret;
}
} // end namespace obrpc
} // namespace oceanbase