From f3fc769495a06e90ccc87a1475088bf52bc4f52b Mon Sep 17 00:00:00 2001 From: nolouch Date: Mon, 29 Apr 2024 14:12:06 +0800 Subject: [PATCH] core: remove the overlaps logic in UpdateSubTree Signed-off-by: nolouch --- pkg/core/region.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/core/region.go b/pkg/core/region.go index 713e82cc36d..3f28bc60154 100644 --- a/pkg/core/region.go +++ b/pkg/core/region.go @@ -1106,13 +1106,7 @@ func (r *RegionsInfo) UpdateSubTreeOrderInsensitive(region *RegionInfo) { } } - if rangeChanged { - overlaps := r.getOverlapRegionFromSubTreeLocked(region) - for _, re := range overlaps { - r.removeRegionFromSubTreeLocked(re) - } - } - + // update will remove overlaps item := ®ionItem{region} r.subRegions[region.GetID()] = item // It has been removed and all information needs to be updated again.