未验证 提交 2711b53d 编写于 作者: C congqixia 提交者: GitHub

Apply collection start position (#9459)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 3dac2611
......@@ -20,6 +20,7 @@ import (
"sync/atomic"
"time"
"github.com/milvus-io/milvus/internal/rootcoord"
"github.com/milvus-io/milvus/internal/util/metricsinfo"
datanodeclient "github.com/milvus-io/milvus/internal/distributed/datanode/client"
......@@ -665,6 +666,20 @@ func (s *Server) GetVChanPositions(vchans []vchannel, seekFromStartPosition bool
}
}
if seekPosition == nil {
coll := s.meta.GetCollection(vchan.CollectionID)
if coll != nil {
for _, sp := range coll.GetStartPositions() {
if sp.GetKey() == rootcoord.ToPhysicalChannel(vchan.DmlChannel) {
seekPosition = &internalpb.MsgPosition{
ChannelName: vchan.DmlChannel,
MsgID: sp.GetData(),
}
}
}
}
}
pairs = append(pairs, &datapb.VchannelInfo{
CollectionID: vchan.CollectionID,
ChannelName: vchan.DmlChannel,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册