Remove unused iterator initialization (#24743)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2023-06-08 19:10:35 +08:00 committed by GitHub
parent bede8f6171
commit b77bee6708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 1 deletions

View File

@ -170,7 +170,6 @@ func (kv *RocksdbKV) LoadBytesWithPrefix(prefix string) ([]string, [][]byte, err
option := gorocksdb.NewDefaultReadOptions()
defer option.Destroy()
NewRocksIterator(kv.DB, option)
iter := NewRocksIteratorWithUpperBound(kv.DB, typeutil.AddOne(prefix), option)
defer iter.Close()