Skip to content

Commit d0b0a85

Browse files
Merge branch 'master' into mysql-wait-timeout-applier-only
2 parents 0210c3b + 59db6fa commit d0b0a85

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
with:
1919
go-version-file: go.mod
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v4
21+
uses: golangci/golangci-lint-action@v6
2222
with:
2323
version: v1.54.2

go/base/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ func (this *MigrationContext) ReadMaxLoad(maxLoadList string) error {
775775
return nil
776776
}
777777

778-
// ReadMaxLoad parses the `--max-load` flag, which is in multiple key-value format,
778+
// ReadCriticalLoad parses the `--max-load` flag, which is in multiple key-value format,
779779
// such as: 'Threads_running=100,Threads_connected=500'
780780
// It only applies changes in case there's no parsing error.
781781
func (this *MigrationContext) ReadCriticalLoad(criticalLoadList string) error {

go/logic/applier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ func (this *Applier) StartSlaveIOThread() error {
799799
return nil
800800
}
801801

802-
// StartSlaveSQLThread is applicable with --test-on-replica
802+
// StopSlaveSQLThread is applicable with --test-on-replica
803803
func (this *Applier) StopSlaveSQLThread() error {
804804
query := `stop /* gh-ost */ slave sql_thread`
805805
this.migrationContext.Log.Infof("Verifying SQL thread is stopped")

go/logic/throttler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (this *Throttler) criticalLoadIsMet() (met bool, variableName string, value
284284
return false, variableName, value, threshold, nil
285285
}
286286

287-
// collectReplicationLag reads the latest changelog heartbeat value
287+
// collectThrottleHTTPStatus reads the latest changelog heartbeat value
288288
func (this *Throttler) collectThrottleHTTPStatus(firstThrottlingCollected chan<- bool) {
289289
collectFunc := func() (sleep bool, err error) {
290290
if atomic.LoadInt64(&this.migrationContext.HibernateUntil) > 0 {
@@ -434,7 +434,7 @@ func (this *Throttler) collectGeneralThrottleMetrics() error {
434434
return setThrottle(false, "", base.NoThrottleReasonHint)
435435
}
436436

437-
// initiateThrottlerMetrics initiates the various processes that collect measurements
437+
// initiateThrottlerCollection initiates the various processes that collect measurements
438438
// that may affect throttling. There are several components, all running independently,
439439
// that collect such metrics.
440440
func (this *Throttler) initiateThrottlerCollection(firstThrottlingCollected chan<- bool) {

go/mysql/binlog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type BinlogCoordinates struct {
1919
EventSize int64
2020
}
2121

22-
// ParseInstanceKey will parse an InstanceKey from a string representation such as 127.0.0.1:3306
22+
// ParseBinlogCoordinates will parse an InstanceKey from a string representation such as 127.0.0.1:3306
2323
func ParseBinlogCoordinates(logFileLogPos string) (*BinlogCoordinates, error) {
2424
tokens := strings.SplitN(logFileLogPos, ":", 2)
2525
if len(tokens) != 2 {

0 commit comments

Comments
 (0)