fix: Prevent remove new growing L1 segment when SyncSegments (#34056)

Related to #34018

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/34084/head
congqixia 2024-06-24 10:18:01 +08:00 committed by GitHub
parent ca7ef26e4b
commit b5c9a7364b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {