mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
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:
parent
acb33bba4d
commit
eb4bfa3281
@ -538,9 +538,8 @@ func (deser *DeserializeReader[T]) Next() error {
|
|||||||
deser.pos = 0
|
deser.pos = 0
|
||||||
deser.rec = deser.rr.Record()
|
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 {
|
if err := deser.deserializer(deser.rec, deser.values); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user