mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
Destroy readOptions after use
Signed-off-by: yukun <kun.yu@zilliz.com>
This commit is contained in:
parent
7bad0a01e9
commit
18e0581d5c
@ -295,6 +295,7 @@ func (rmq *rocksmq) Consume(topicName string, groupName string, n int) ([]Consum
|
||||
}
|
||||
|
||||
readOpts := gorocksdb.NewDefaultReadOptions()
|
||||
defer readOpts.Destroy()
|
||||
readOpts.SetPrefixSameAsStart(true)
|
||||
iter := rmq.store.NewIterator(readOpts)
|
||||
defer iter.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user