Skip to content

Commit

Permalink
Update prefetchJob for blockio (matrixorigin#12791)
Browse files Browse the repository at this point in the history
Approved by: @XuPeng-SH
  • Loading branch information
LeftHandCold authored Nov 17, 2023
1 parent 51d7fc1 commit d9fa6aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/vm/engine/tae/blockio/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,12 @@ func prefetchJob(ctx context.Context, params PrefetchParams) *tasks.Job {
func(_ context.Context) (res *tasks.JobResult) {
// TODO
res = &tasks.JobResult{}
ioVectors, err := reader.ReadMultiBlocks(ctx,
params.ids, nil)
err := reader.GetFs().PrefetchFile(ctx, params.key.Name().String())
if err != nil {
res.Err = err
return
}
// no further reads
res.Res = nil
ioVectors.Release()
if params.reader == nil {
putReader(reader)
}
Expand Down

0 comments on commit d9fa6aa

Please sign in to comment.