[CP] Fix correctness problem in errsim
Co-authored-by: qianchanger <qianchanger@gmail.com>
This commit is contained in:
@ -108,5 +108,20 @@ int ObGranuleTaskInfo::assign(const ObGranuleTaskInfo &other)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObTaskInfo::ObPartLoc::assign(ObTaskInfo::ObPartLoc &other)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (OB_FAIL(scan_ranges_.assign(other.scan_ranges_))) {
|
||||
LOG_WARN("fail to assign scan range", K(ret), K(other.scan_ranges_.count()));
|
||||
} else {
|
||||
part_key_ref_id_ = other.part_key_ref_id_;
|
||||
value_ref_id_ = other.value_ref_id_;
|
||||
renew_time_ = other.renew_time_;
|
||||
row_store_ = other.row_store_;
|
||||
datum_store_ = other.datum_store_;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -153,6 +153,7 @@ public:
|
||||
{
|
||||
return common::OB_INVALID_TIMESTAMP != renew_time_;
|
||||
}
|
||||
int assign(ObPartLoc &other);
|
||||
TO_STRING_KV(K_(scan_ranges),
|
||||
K_(part_key_ref_id),
|
||||
K_(value_ref_id),
|
||||
|
||||
Reference in New Issue
Block a user