未验证 提交 9c53375b 编写于 作者: C congqixia 提交者: GitHub

Fix MqttMsgStream skip current msg logic (#11171)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 da56a721
......@@ -875,7 +875,14 @@ func (ms *MqTtMsgStream) Seek(msgPositions []*internalpb.MsgPosition) error {
}
ms.addConsumer(consumer, mp.ChannelName)
runLoop := true
// rmq seek behavior (position, ...)
// pulsar seek behavior [position, ...)
// skip one tt for pulsar
_, ok := consumer.(*mqclient.RmqConsumer)
runLoop := false
if !ok {
runLoop = true
}
for runLoop {
select {
case <-ms.ctx.Done():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册