From 047ae0202e972f113a3a3f53989caeef6f0c9977 Mon Sep 17 00:00:00 2001 From: qianchanger Date: Mon, 13 Feb 2023 09:47:27 +0000 Subject: [PATCH] [CP] Fix phy part replica report null in table look up --- src/sql/ob_phy_table_location.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sql/ob_phy_table_location.cpp b/src/sql/ob_phy_table_location.cpp index f0f13731b..fb3205d59 100644 --- a/src/sql/ob_phy_table_location.cpp +++ b/src/sql/ob_phy_table_location.cpp @@ -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)); } } }