From 0006970132ba77981c24bd66b868d869e2599c4f Mon Sep 17 00:00:00 2001 From: D3Hunter Date: Mon, 29 Jul 2024 10:48:28 +0800 Subject: [PATCH] fix comments --- pkg/domain/domain.go | 3 ++- pkg/expression/context/context.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/domain/domain.go b/pkg/domain/domain.go index 58f7150d88e4e..e78bad22a19c3 100644 --- a/pkg/domain/domain.go +++ b/pkg/domain/domain.go @@ -1407,7 +1407,8 @@ func (do *Domain) Init( return nil } -// Start starts the domain. +// Start starts the domain. After start, DDLs can be executed using session, see +// Init also. func (do *Domain) Start() error { gCfg := config.GetGlobalConfig() if gCfg.EnableGlobalKill && do.etcdClient != nil { diff --git a/pkg/expression/context/context.go b/pkg/expression/context/context.go index 8079d4205c40a..7986807118270 100644 --- a/pkg/expression/context/context.go +++ b/pkg/expression/context/context.go @@ -231,6 +231,6 @@ func AssertLocationWithSessionVars(ctxLoc *time.Location, vars *variable.Session stmtLocStr := vars.StmtCtx.TimeZone().String() intest.Assert(ctxLocStr == varsLocStr && ctxLocStr == stmtLocStr, "location mismatch, ctxLoc: %s, varsLoc: %s, stmtLoc: %s", - ctxLoc.String(), ctxLocStr, stmtLocStr, + ctxLocStr, varsLocStr, stmtLocStr, ) }