Skip to content

Commit d0804db

Browse files
rename vars
Signed-off-by: Tim Vaillancourt <[email protected]>
1 parent 9aac9aa commit d0804db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

go/vt/vtctl/reparentutil/reparent_sorter.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ func (rs *reparentSorter) Less(i, j int) bool {
7171
return true
7272
}
7373

74-
// sort by combined and executed GTID positions
75-
jPosition := rs.positions[j]
76-
iPosition := rs.positions[i]
74+
// sort by combined positions. if equal, also sort by the executed GTID positions.
75+
jPositions := rs.positions[j]
76+
iPositions := rs.positions[i]
7777

78-
if !iPosition.AtLeast(jPosition) {
78+
if !iPositions.AtLeast(jPositions) {
7979
// [i] does not have all GTIDs that [j] does
8080
return false
8181
}
82-
if !jPosition.AtLeast(iPosition) {
82+
if !jPositions.AtLeast(iPositions) {
8383
// [j] does not have all GTIDs that [i] does
8484
return true
8585
}

0 commit comments

Comments
 (0)