mirror of https://github.com/milvus-io/milvus.git
enhance: add the seal segment when dispatch delete msgs (#34565)
/kind improvement Signed-off-by: SimFG <bang.fu@zilliz.com>pull/34604/head
parent
ebc68d2774
commit
b58a5617ef
|
@ -90,7 +90,7 @@ func (wb *l0WriteBuffer) dispatchDeleteMsgs(groups []*inData, deleteMsgs []*msgs
|
|||
pks := pksInDeleteMsgs[didx]
|
||||
pkTss := delMsg.GetTimestamps()
|
||||
partitionSegments := wb.metaCache.GetSegmentsBy(metacache.WithPartitionID(delMsg.PartitionID),
|
||||
metacache.WithSegmentState(commonpb.SegmentState_Growing, commonpb.SegmentState_Flushing, commonpb.SegmentState_Flushed))
|
||||
metacache.WithSegmentState(commonpb.SegmentState_Growing, commonpb.SegmentState_Sealed, commonpb.SegmentState_Flushing, commonpb.SegmentState_Flushed))
|
||||
partitionGroups := lo.Filter(groups, func(inData *inData, _ int) bool {
|
||||
return delMsg.GetPartitionID() == common.AllPartitionsID || delMsg.GetPartitionID() == inData.partitionID
|
||||
})
|
||||
|
|
|
@ -20,6 +20,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
|
||||
"github.com/milvus-io/milvus/pkg/util/typeutil"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue