mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci]Format rocksdbkv (#11853)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
8593d75fd1
commit
36966504b1
@ -96,7 +96,7 @@ func (kv *RocksdbKV) Load(key string) (string, error) {
|
||||
// LoadWithPrefix returns a batch values of keys with a prefix
|
||||
func (kv *RocksdbKV) LoadWithPrefix(key string) ([]string, []string, error) {
|
||||
if key == "" {
|
||||
return nil, nil, errors.New("Key is nil in LoadWithPrefix")
|
||||
return nil, nil, errors.New("key is nil in LoadWithPrefix")
|
||||
}
|
||||
if kv.DB == nil {
|
||||
return nil, nil, fmt.Errorf("Rocksdb instance is nil when load %s", key)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user