mirror of https://github.com/milvus-io/milvus.git
fix: Revert reuse deserialize result to fix data overwritten (#34683)
See also #34637 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/34694/head
parent
acb33bba4d
commit
eb4bfa3281
|
@ -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())
|
||||
}
|
||||
|
||||
if err := deser.deserializer(deser.rec, deser.values); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue