[skip ci]Add comments for rocksmq SeekToLatest (#10120)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/10127/head
yukun 2021-10-18 19:52:49 +08:00 committed by GitHub
parent ec667846f4
commit 401753dea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -704,6 +704,7 @@ func (rmq *rocksmq) Seek(topicName string, groupName string, msgID UniqueID) err
return nil
}
// SeekToLatest updates current id to the msg id of latest message
func (rmq *rocksmq) SeekToLatest(topicName, groupName string) error {
rmq.storeMu.Lock()
defer rmq.storeMu.Unlock()