Skip to content

Commit

Permalink
fix: Prevent remove new growing L1 segment when SyncSegments
Browse files Browse the repository at this point in the history
Related to #34018

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Jun 21, 2024
1 parent 958ecd5 commit a84976f
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 a84976f

Please sign in to comment.