Skip to content

Commit e5dd582

Browse files
committed
Change-Id: Ib2e56c02ea1f98a5a47392ebbeeb6e88feb28e3c
1 parent bf63ac9 commit e5dd582

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

go/logic/applier.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ func (this *Applier) ReadMigrationMinValues(uniqueKey *sql.UniqueKey) error {
434434
}
435435
}
436436
log.Infof("Migration min values: [%s]", this.migrationContext.MigrationRangeMinValues)
437+
438+
err = rows.Err()
437439
return err
438440
}
439441

@@ -463,6 +465,8 @@ func (this *Applier) ReadMigrationMaxValues(uniqueKey *sql.UniqueKey) error {
463465
}
464466
}
465467
log.Infof("Migration max values: [%s]", this.migrationContext.MigrationRangeMaxValues)
468+
469+
err = rows.Err()
466470
return err
467471
}
468472

@@ -544,6 +548,11 @@ func (this *Applier) CalculateNextIterationRangeEndValues() (hasFurtherRange boo
544548
}
545549
hasFurtherRange = true
546550
}
551+
552+
if err = rows.Err(); err != nil {
553+
return hasFurtherRange, err
554+
}
555+
547556
if hasFurtherRange {
548557
this.migrationContext.MigrationIterationRangeMaxValues = iterationRangeMaxValues
549558
return hasFurtherRange, nil

0 commit comments

Comments
 (0)