Skip to content

Commit

Permalink
fix another place
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Jul 29, 2022
1 parent 3ff8af5 commit 30dca2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions executor/distsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ func (e *IndexReaderExecutor) open(ctx context.Context, kvRanges []kv.KeyRange)

e.memTracker = memory.NewTracker(e.id, -1)
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker)
slices.SortFunc(kvRanges, func(i, j kv.KeyRange) bool {
return bytes.Compare(i.StartKey, j.StartKey) < 0
})
var builder distsql.RequestBuilder
builder.SetKeyRanges(kvRanges).
SetDAGRequest(e.dagPB).
Expand Down

0 comments on commit 30dca2f

Please sign in to comment.