未验证 提交 1eb31682 编写于 作者: Y yukun 提交者: GitHub

Unset max open files in rocksdb (#8799)

Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>
上级 c23236c5
......@@ -123,7 +123,7 @@ func NewRocksMQ(name string, idAllocator allocator.GIDAllocator) (*rocksmq, erro
opts.SetBlockBasedTableFactory(bbto)
opts.SetCreateIfMissing(true)
opts.SetPrefixExtractor(gorocksdb.NewFixedPrefixTransform(FixedChannelNameLen + 1))
opts.SetMaxOpenFiles(-1)
// opts.SetMaxOpenFiles(-1)
db, err := gorocksdb.OpenDb(opts, name)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册