fix: Revert reuse deserialize result to fix data overwritten (#34683)

See also #34637

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-07-15 22:31:38 +08:00 committed by GitHub
parent acb33bba4d
commit eb4bfa3281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -538,9 +538,8 @@ func (deser *DeserializeReader[T]) Next() error {
deser.pos = 0
deser.rec = deser.rr.Record()
if deser.values == nil || len(deser.values) != deser.rec.Len() {
deser.values = make([]T, deser.rec.Len())
}
deser.values = make([]T, deser.rec.Len())
if err := deser.deserializer(deser.rec, deser.values); err != nil {
return err
}