Skip to content

Commit 851f998

Browse files
rename
1 parent 697b8dc commit 851f998

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/executor/join/hash_join_spill_helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ func (h *hashJoinSpillHelper) init() {
382382
}
383383

384384
for _, worker := range h.hashJoinExec.ProbeWorkers {
385-
if worker.restoredChk == nil {
386-
worker.restoredChk = chunk.NewEmptyChunk(h.probeSpillFieldTypes)
385+
if worker.restoredChkBuf == nil {
386+
worker.restoredChkBuf = chunk.NewEmptyChunk(h.probeSpillFieldTypes)
387387
}
388388
}
389389
}

pkg/executor/join/hash_join_v2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ type ProbeWorkerV2 struct {
361361
// execution, to avoid the concurrency of joiner.chk and joiner.selected.
362362
JoinProbe ProbeV2
363363

364-
restoredChk *chunk.Chunk
364+
restoredChkBuf *chunk.Chunk
365365
}
366366

367367
func (w *ProbeWorkerV2) updateProbeStatistic(start time.Time, probeTime int64) {
@@ -395,7 +395,7 @@ func (w *ProbeWorkerV2) restoreAndProbe(inDisk *chunk.DataInDiskByChunks) {
395395
}
396396
failpoint.Inject("ConsumeRandomPanic", nil)
397397

398-
err := inDisk.FillChunk(i, w.restoredChk)
398+
err := inDisk.FillChunk(i, w.restoredChkBuf)
399399
if err != nil {
400400
joinResult.err = err
401401
break
@@ -915,7 +915,7 @@ func (w *ProbeWorkerV2) scanRowTableAfterProbeDone() {
915915
}
916916

917917
func (w *ProbeWorkerV2) processOneRestoredProbeChunk(joinResult *hashjoinWorkerResult) (ok bool, waitTime int64, _ *hashjoinWorkerResult) {
918-
joinResult.err = w.JoinProbe.SetRestoredChunkForProbe(w.restoredChk)
918+
joinResult.err = w.JoinProbe.SetRestoredChunkForProbe(w.restoredChkBuf)
919919
if joinResult.err != nil {
920920
return false, 0, joinResult
921921
}

0 commit comments

Comments
 (0)