mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
[skip ci]Format rocksdbkv (#12034)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
18b9f7810c
commit
3b51232d59
@ -158,7 +158,7 @@ func (kv *RocksdbKV) MultiLoad(keys []string) ([]string, error) {
|
||||
// Save a pair of key-value
|
||||
func (kv *RocksdbKV) Save(key, value string) error {
|
||||
if kv.DB == nil {
|
||||
return errors.New("Rocksdb instance is nil when do save")
|
||||
return errors.New("rocksdb instance is nil when do save")
|
||||
}
|
||||
err := kv.DB.Put(kv.WriteOptions, []byte(key), []byte(value))
|
||||
return err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user