Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Feb 16, 2023
1 parent d41b4f8 commit 3a70491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddl/backfilling.go
Original file line number Diff line number Diff line change
Expand Up @@ -1072,9 +1072,6 @@ func (dc *ddlCtx) writePhysicalTableRecord(sessPool *sessionPool, t table.Physic
}

for {
if startKey.Cmp(endKey) >= 0 {
break
}
kvRanges, err := splitTableRanges(t, reorgInfo.d.store, startKey, endKey, backfillTaskChanSize)
if err != nil {
return errors.Trace(err)
Expand Down Expand Up @@ -1111,6 +1108,9 @@ func (dc *ddlCtx) writePhysicalTableRecord(sessPool *sessionPool, t table.Physic
} else {
startKey = kvRanges[len(kvRanges)-1].EndKey
}
if startKey.Cmp(endKey) >= 0 {
break
}
}
if ingestBeCtx != nil {
ingestBeCtx.EngMgr.ResetWorkers(ingestBeCtx, job.ID, reorgInfo.currElement.ID)
Expand Down

0 comments on commit 3a70491

Please sign in to comment.