Skip to content

Commit

Permalink
fix: Prevent remove new growing L1 segment when SyncSegments (milvus-…
Browse files Browse the repository at this point in the history
…io#34056)

Related to milvus-io#34018

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia committed Jun 24, 2024
1 parent ca7ef26 commit b5c9a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datanode/metacache/meta_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b5c9a73

Please sign in to comment.