Skip to content

Commit

Permalink
fix: err degenerated to a new variable (#35891)
Browse files Browse the repository at this point in the history
#35890

Signed-off-by: fengjun2016 <[email protected]>
  • Loading branch information
fengjun2016 authored Sep 4, 2024
1 parent 24fb101 commit 6eb8b3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/datanode/importv2/task_l0_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
return
}
pkField, err := typeutil.GetPrimaryFieldSchema(t.GetSchema())
var pkField *schemapb.FieldSchema
pkField, err = typeutil.GetPrimaryFieldSchema(t.GetSchema())
if err != nil {
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 {
return
}
Expand Down

0 comments on commit 6eb8b3f

Please sign in to comment.