mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
fix: err degenerated to a new variable (#35891)
https://github.com/milvus-io/milvus/issues/35890 Signed-off-by: fengjun2016 <jornfeng@gmail.com>
This commit is contained in:
parent
24fb10114b
commit
6eb8b3f745
@ -143,11 +143,13 @@ func (t *L0ImportTask) Execute() []*conc.Future[any] {
|
|||||||
fmt.Sprintf("there should be one prefix for l0 import, but got %v", t.req.GetFiles()))
|
fmt.Sprintf("there should be one prefix for l0 import, but got %v", t.req.GetFiles()))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
pkField, err := typeutil.GetPrimaryFieldSchema(t.GetSchema())
|
var pkField *schemapb.FieldSchema
|
||||||
|
pkField, err = typeutil.GetPrimaryFieldSchema(t.GetSchema())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
reader, err := binlog.NewL0Reader(t.ctx, t.cm, pkField, t.req.GetFiles()[0], bufferSize)
|
var reader binlog.L0Reader
|
||||||
|
reader, err = binlog.NewL0Reader(t.ctx, t.cm, pkField, t.req.GetFiles()[0], bufferSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user