Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Jan 13, 2025
1 parent ee310c8 commit 7cdfe8f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions go/vt/mysqlctl/mysqld.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,12 @@ func (mysqld *Mysqld) Shutdown(ctx context.Context, cnf *Mycnf, waitForMysqld bo

// We're shutting down on purpose. We no longer want to be notified when
// mysqld terminates.
// mysqld.mutex.Lock()
// if mysqld.cancelWaitCmd != nil {
// close(mysqld.cancelWaitCmd)
// mysqld.cancelWaitCmd = nil
// }
// mysqld.mutex.Unlock()
mysqld.mutex.Lock()
if mysqld.cancelWaitCmd != nil {
close(mysqld.cancelWaitCmd)
mysqld.cancelWaitCmd = nil
}
mysqld.mutex.Unlock()

// possibly mysql is already shutdown, check for a few files first
_, socketPathErr := os.Stat(cnf.SocketFile)
Expand Down

0 comments on commit 7cdfe8f

Please sign in to comment.