From 7cdfe8f2551edf942d901811d0011015c56c1233 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Mon, 13 Jan 2025 11:09:13 -0600 Subject: [PATCH] Remove debug code Signed-off-by: Florent Poinsard --- go/vt/mysqlctl/mysqld.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/go/vt/mysqlctl/mysqld.go b/go/vt/mysqlctl/mysqld.go index 81431105d33..43ec3d88575 100644 --- a/go/vt/mysqlctl/mysqld.go +++ b/go/vt/mysqlctl/mysqld.go @@ -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)