Unset max open files in rocksdb (#8799)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/8629/head
yukun 2021-09-28 21:20:03 +08:00 committed by GitHub
parent c23236c50e
commit 1eb3168254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {