mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +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
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
iMsg.insertMessages = append(iMsg.insertMessages, msg.(*msgstream.InsertMsg))
|
iMsg.insertMessages = append(iMsg.insertMessages, msg.(*msgstream.InsertMsg))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -110,10 +109,10 @@ func (ddn *ddNode) filterFlushedSegmentInsertMessages(msg *msgstream.InsertMsg)
|
|||||||
|
|
||||||
ddn.mu.Lock()
|
ddn.mu.Lock()
|
||||||
if si, ok := ddn.seg2SegInfo[msg.GetSegmentID()]; ok {
|
if si, ok := ddn.seg2SegInfo[msg.GetSegmentID()]; ok {
|
||||||
if msg.EndTs() > si.GetDmlPosition().GetTimestamp() {
|
if msg.EndTs() <= si.GetDmlPosition().GetTimestamp() {
|
||||||
delete(ddn.seg2SegInfo, msg.GetSegmentID())
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
delete(ddn.seg2SegInfo, msg.GetSegmentID())
|
||||||
}
|
}
|
||||||
|
|
||||||
ddn.mu.Unlock()
|
ddn.mu.Unlock()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user