mirror of https://github.com/milvus-io/milvus.git
parent
18b9f7810c
commit
3b51232d59
|
@ -158,7 +158,7 @@ func (kv *RocksdbKV) MultiLoad(keys []string) ([]string, error) {
|
||||||
// Save a pair of key-value
|
// Save a pair of key-value
|
||||||
func (kv *RocksdbKV) Save(key, value string) error {
|
func (kv *RocksdbKV) Save(key, value string) error {
|
||||||
if kv.DB == nil {
|
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))
|
err := kv.DB.Put(kv.WriteOptions, []byte(key), []byte(value))
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue