[CP] Fix correctness problem in errsim

Co-authored-by: qianchanger <qianchanger@gmail.com>
This commit is contained in:
sdc
2023-08-01 19:48:24 +00:00
committed by ob-robot
parent 4251560f1b
commit 664a876fd8
2 changed files with 16 additions and 0 deletions

View File

@ -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;
}
}
}

View File

@ -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),