Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Aug 13, 2024
1 parent 4608ffc commit 50fb127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/logic/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ func (this *Applier) AtomicCutOverMagicLock(sessionIdChan chan int64, tableLocke
}

defer func() {
query = fmt.Sprintf(`set /* gh-ost */ session wait_timeout:=%d`, this.migrationContext.ApplierWaitTimeout)
if _, err := sqlutils.ExecNoPrepare(this.db, query); err != nil {
this.migrationContext.Log.Errorf("Failed to restore applier wait_timeout to %d seconds: %v",
this.migrationContext.ApplierWaitTimeout, err,
Expand Down

0 comments on commit 50fb127

Please sign in to comment.