From cb8e65abcbd873b71ff81039ebc31b619830897d Mon Sep 17 00:00:00 2001 From: Hangjie Mo Date: Thu, 10 Feb 2022 12:37:36 +0800 Subject: [PATCH] bindinfo: fix inconsistent comments (#32223) ref pingcap/tidb#32224 --- bindinfo/handle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindinfo/handle.go b/bindinfo/handle.go index 622ac2ce6157c..3fe4fb7c0d980 100644 --- a/bindinfo/handle.go +++ b/bindinfo/handle.go @@ -132,7 +132,7 @@ func (h *BindHandle) Update(fullLoad bool) (err error) { exec := h.sctx.Context.(sqlexec.RestrictedSQLExecutor) - // No need to acquire the session context lock for ExecRestrictedStmt, it + // No need to acquire the session context lock for ExecRestrictedSQL, it // uses another background session. rows, _, err := exec.ExecRestrictedSQL(context.TODO(), nil, `SELECT original_sql, bind_sql, default_db, status, create_time, update_time, charset, collation, source FROM mysql.bind_info WHERE update_time > %? ORDER BY update_time, create_time`, updateTime) @@ -696,7 +696,7 @@ func (h *BindHandle) extractCaptureFilterFromStorage() (filter *captureFilter) { tables: make(map[stmtctx.TableEntry]struct{}), } exec := h.sctx.Context.(sqlexec.RestrictedSQLExecutor) - // No need to acquire the session context lock for ExecRestrictedStmt, it + // No need to acquire the session context lock for ExecRestrictedSQL, it // uses another background session. rows, _, err := exec.ExecRestrictedSQL(context.TODO(), nil, `SELECT filter_type, filter_value FROM mysql.capture_plan_baselines_blacklist order by filter_type`) if err != nil {