[skip ci]Add rmq_imple seek comments (#11273)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/11282/head
yukun 2021-11-04 20:51:10 +08:00 committed by GitHub
parent 872f6f8a04
commit c05ed4c365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -648,6 +648,7 @@ func (rmq *rocksmq) Consume(topicName string, groupName string, n int) ([]Consum
return consumerMessage, nil
}
// seek is used for internal call without the topicMu
func (rmq *rocksmq) seek(topicName string, groupName string, msgID UniqueID) error {
rmq.storeMu.Lock()
defer rmq.storeMu.Unlock()