未验证 提交 5e19629b 编写于 作者: Y yukun 提交者: GitHub

[skip ci]Format rocksdbkv (#11854)

Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>
上级 36966504
...@@ -99,7 +99,7 @@ func (kv *RocksdbKV) LoadWithPrefix(key string) ([]string, []string, error) { ...@@ -99,7 +99,7 @@ func (kv *RocksdbKV) LoadWithPrefix(key string) ([]string, []string, error) {
return nil, nil, errors.New("key is nil in LoadWithPrefix") return nil, nil, errors.New("key is nil in LoadWithPrefix")
} }
if kv.DB == nil { if kv.DB == nil {
return nil, nil, fmt.Errorf("Rocksdb instance is nil when load %s", key) return nil, nil, fmt.Errorf("rocksdb instance is nil when load %s", key)
} }
kv.ReadOptions.SetPrefixSameAsStart(true) kv.ReadOptions.SetPrefixSameAsStart(true)
kv.DB.Close() kv.DB.Close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册