Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change-Id: Ib2e56c02ea1f98a5a47392ebbeeb6e88feb28e3c
  • Loading branch information
pomelo2016 committed Aug 17, 2020
1 parent bf63ac9 commit e5dd582
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/logic/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ func (this *Applier) ReadMigrationMinValues(uniqueKey *sql.UniqueKey) error {
}
}
log.Infof("Migration min values: [%s]", this.migrationContext.MigrationRangeMinValues)

err = rows.Err()
return err
}

Expand Down Expand Up @@ -463,6 +465,8 @@ func (this *Applier) ReadMigrationMaxValues(uniqueKey *sql.UniqueKey) error {
}
}
log.Infof("Migration max values: [%s]", this.migrationContext.MigrationRangeMaxValues)

err = rows.Err()
return err
}

Expand Down Expand Up @@ -544,6 +548,11 @@ func (this *Applier) CalculateNextIterationRangeEndValues() (hasFurtherRange boo
}
hasFurtherRange = true
}

if err = rows.Err(); err != nil {
return hasFurtherRange, err
}

if hasFurtherRange {
this.migrationContext.MigrationIterationRangeMaxValues = iterationRangeMaxValues
return hasFurtherRange, nil
Expand Down

0 comments on commit e5dd582

Please sign in to comment.