未验证 提交 e7e37448 编写于 作者: X XuanYang-cn 提交者: GitHub

[skip ci]Add comment for flowgraph insertBufferNode (#9361)

Signed-off-by: NYang Xuan <xuan.yang@zilliz.com>
上级 0ebc9e20
......@@ -779,6 +779,7 @@ func flushSegment(
clearFn(true)
}
// writeHardTimeTick writes timetick once insertBufferNode operates.
func (ibNode *insertBufferNode) writeHardTimeTick(ts Timestamp) error {
msgPack := msgstream.MsgPack{}
timeTickMsg := msgstream.DataNodeTtMsg{
......@@ -801,6 +802,10 @@ func (ibNode *insertBufferNode) writeHardTimeTick(ts Timestamp) error {
return ibNode.timeTickStream.Produce(&msgPack)
}
// uploadMemStates2Coord uploads latest changed segments statistics in DataNode memory to DataCoord
// through a msgStream channel.
//
// Currently, the statistics includes segment ID and its total number of rows in memory.
func (ibNode *insertBufferNode) uploadMemStates2Coord(segIDs []UniqueID) error {
log.Debug("Updating segments statistics...")
statsUpdates := make([]*internalpb.SegmentStatisticsUpdates, 0, len(segIDs))
......
......@@ -36,6 +36,7 @@ func (fgMsg *flowGraphMsg) TimeTick() Timestamp {
return fgMsg.timeRange.timestampMax
}
// flush Msg is used in flowgraph insertBufferNode to flush the given segment
type flushMsg struct {
msgID UniqueID
timestamp Timestamp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册