[skip ci]Format rocksdbkv log (#13094)

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

View File

@ -181,7 +181,7 @@ func (kv *RocksdbKV) MultiSave(kvs map[string]string) error {
// RemoveWithPrefix removes a batch of key-values with specified prefix
func (kv *RocksdbKV) RemoveWithPrefix(prefix string) error {
if kv.DB == nil {
return errors.New("Rocksdb instance is nil when do RemoveWithPrefix")
return errors.New("rocksdb instance is nil when do RemoveWithPrefix")
}
kv.ReadOptions.SetPrefixSameAsStart(true)
kv.DB.Close()