[CP] Fix phy part replica report null in table look up
This commit is contained in:
@ -323,14 +323,12 @@ int ObPhyTableLocation::try_build_location_idx_map()
|
|||||||
ARRAY_FOREACH(partition_location_list_, idx) {
|
ARRAY_FOREACH(partition_location_list_, idx) {
|
||||||
// ObPartitionReplicaLocation
|
// ObPartitionReplicaLocation
|
||||||
auto &item = partition_location_list_.at(idx);
|
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))) {
|
if (OB_FAIL(location_idx_map_.set_refactored(item.get_partition_id(), idx))) {
|
||||||
LOG_WARN("fail set value to map", K(ret), K(item));
|
LOG_WARN("fail set value to map", K(ret), K(item));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user