Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Aug 13, 2024
1 parent d8168ec commit 4608ffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/logic/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,8 @@ func (this *Applier) CreateAtomicCutOverSentryTable() error {
return nil
}

// InitAtomicCutOverIdleTimeout sets the cut-over session wait_timeout, returning a func() to rollback
// to the original wait_timeout and an error, if any.
// InitAtomicCutOverIdleTimeout sets the cut-over session wait_timeout in order to reduce the
// time an unresponsive (but still connected) gh-ost process can hold the cut-over lock.
func (this *Applier) InitAtomicCutOverIdleTimeout(tx *gosql.Tx) error {
cutOverIdleTimeoutSeconds := this.migrationContext.CutOverLockTimeoutSeconds * 2
this.migrationContext.Log.Infof("Setting cut-over idle timeout as %d seconds", cutOverIdleTimeoutSeconds)
Expand Down

0 comments on commit 4608ffc

Please sign in to comment.