Skip to content

Commit 8d99e46

Browse files
chore: fix function names in comment (#1405)
Signed-off-by: mountcount <[email protected]> Co-authored-by: Tim Vaillancourt <[email protected]>
1 parent e6c198c commit 8d99e46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

go/base/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ func (this *MigrationContext) ReadMaxLoad(maxLoadList string) error {
772772
return nil
773773
}
774774

775-
// ReadMaxLoad parses the `--max-load` flag, which is in multiple key-value format,
775+
// ReadCriticalLoad parses the `--max-load` flag, which is in multiple key-value format,
776776
// such as: 'Threads_running=100,Threads_connected=500'
777777
// It only applies changes in case there's no parsing error.
778778
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
@@ -796,7 +796,7 @@ func (this *Applier) StartSlaveIOThread() error {
796796
return nil
797797
}
798798

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

go/logic/throttler.go

Lines changed: 1 addition & 1 deletion
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 {

0 commit comments

Comments
 (0)