[skip ci]Format rocksdbkv log (#13190)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/13198/head
yukun 2021-12-10 21:14:14 +08:00 committed by GitHub
parent 4d27c8ef14
commit f6ec741114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ func (kv *RocksdbKV) RemoveWithPrefix(prefix string) error {
// Remove is used to remove a pair of key-value // Remove is used to remove a pair of key-value
func (kv *RocksdbKV) Remove(key string) error { func (kv *RocksdbKV) Remove(key string) error {
if kv.DB == nil { if kv.DB == nil {
return errors.New("Rocksdb instance is nil when do Remove") return errors.New("rocksdb instance is nil when do Remove")
} }
err := kv.DB.Delete(kv.WriteOptions, []byte(key)) err := kv.DB.Delete(kv.WriteOptions, []byte(key))
return err return err