From a84976f64f6d56f39f725e0b940cc36e25cd7457 Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Fri, 21 Jun 2024 17:00:35 +0800 Subject: [PATCH] fix: Prevent remove new growing L1 segment when SyncSegments Related to #34018 Signed-off-by: Congqi Xia --- internal/datanode/metacache/meta_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/datanode/metacache/meta_cache.go b/internal/datanode/metacache/meta_cache.go index 221cf5a8f2962..952fbceb3a384 100644 --- a/internal/datanode/metacache/meta_cache.go +++ b/internal/datanode/metacache/meta_cache.go @@ -292,7 +292,7 @@ func (c *metaCacheImpl) UpdateSegmentView(partitionID int64, for segID, info := range c.segmentInfos { if info.partitionID != partitionID || - (info.Level() == datapb.SegmentLevel_L0 && info.State() == commonpb.SegmentState_Growing) { + info.State() == commonpb.SegmentState_Growing { continue } if _, ok := allSegments[segID]; !ok {