MCPcopy
hub / github.com/github/gh-ost / AddThrottleControlReplicaKey

Method AddThrottleControlReplicaKey

go/base/context.go:898–904  ·  view source on GitHub ↗
(key mysql.InstanceKey)

Source from the content-addressed store, hash-verified

896}
897
898func (mctx *MigrationContext) AddThrottleControlReplicaKey(key mysql.InstanceKey) error {
899 mctx.throttleMutex.Lock()
900 defer mctx.throttleMutex.Unlock()
901
902 mctx.throttleControlReplicaKeys.AddKey(key)
903 return nil
904}
905
906// ApplyCredentials sorts out the credentials between the config file and the CLI flags
907func (mctx *MigrationContext) ApplyCredentials() {

Callers 1

initiateInspectorMethod · 0.80

Calls 1

AddKeyMethod · 0.80

Tested by

no test coverage detected