[CP] Fix phy part replica report null in table look up

This commit is contained in:
qianchanger 2023-02-13 09:47:27 +00:00 committed by ob-robot
parent 173515e1b4
commit 047ae0202e

View File

@ -323,10 +323,8 @@ int ObPhyTableLocation::try_build_location_idx_map()
ARRAY_FOREACH(partition_location_list_, idx) {
// ObPartitionReplicaLocation
auto &item = partition_location_list_.at(idx);
if (item.get_replica_location().server_ == GCTX.self_addr()) {
if (OB_FAIL(location_idx_map_.set_refactored(item.get_partition_id(), idx))) {
LOG_WARN("fail set value to map", K(ret), K(item));
}
if (OB_FAIL(location_idx_map_.set_refactored(item.get_partition_id(), idx))) {
LOG_WARN("fail set value to map", K(ret), K(item));
}
}
}