mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix MqttMsgStream skip current msg logic (#11171)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
da56a7215a
commit
9c53375bba
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user