avoiding writing rows when rowcopy complete
This commit is contained in:
parent
1021a83ac0
commit
56d09c4105
@ -1146,6 +1146,10 @@ func (this *Migrator) iterateChunks() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
copyRowsFunc := func() error {
|
copyRowsFunc := func() error {
|
||||||
|
if atomic.LoadInt64(&this.rowCopyCompleteFlag) == 1 {
|
||||||
|
// Done
|
||||||
|
return nil
|
||||||
|
}
|
||||||
hasFurtherRange, err := this.applier.CalculateNextIterationRangeEndValues()
|
hasFurtherRange, err := this.applier.CalculateNextIterationRangeEndValues()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return terminateRowIteration(err)
|
return terminateRowIteration(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user