未验证 提交 969c78e7 编写于 作者: Y yukun 提交者: GitHub

[skip ci]Add comments for rocksmq close (#9519)

Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>
上级 30395cb1
......@@ -166,6 +166,10 @@ func NewRocksMQ(name string, idAllocator allocator.GIDAllocator) (*rocksmq, erro
return rmq, nil
}
// Close step:
// 1. Stop retention
// 2. Destroy all consumer groups and topics
// 3. Close rocksdb instance
func (rmq *rocksmq) Close() {
rmq.stopRetention()
rmq.storeMu.Lock()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册