mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
Fix dd node filter bug (#5736)
Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
33a43f48c8
commit
8a0335be44
@ -90,7 +90,6 @@ func (ddn *ddNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
iMsg.insertMessages = append(iMsg.insertMessages, msg.(*msgstream.InsertMsg))
|
||||
}
|
||||
}
|
||||
@ -110,10 +109,10 @@ func (ddn *ddNode) filterFlushedSegmentInsertMessages(msg *msgstream.InsertMsg)
|
||||
|
||||
ddn.mu.Lock()
|
||||
if si, ok := ddn.seg2SegInfo[msg.GetSegmentID()]; ok {
|
||||
if msg.EndTs() > si.GetDmlPosition().GetTimestamp() {
|
||||
delete(ddn.seg2SegInfo, msg.GetSegmentID())
|
||||
if msg.EndTs() <= si.GetDmlPosition().GetTimestamp() {
|
||||
return true
|
||||
}
|
||||
delete(ddn.seg2SegInfo, msg.GetSegmentID())
|
||||
}
|
||||
|
||||
ddn.mu.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user