pingcap/tidb

Wrong function comment for `UpdateGlobal`

Open

#61,311 opened on May 26, 2025

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Go (6,186 forks)batch import
good first issueseverity/minorsig/sql-infratype/bug

Repository metrics

Stars
 (40,090 stars)
PR merge metrics
 (Avg merge 14d 4h) (369 merged PRs in 30d)

Description

Bug Report

https://github.com/pingcap/tidb/blob/1c6c5ad2acd6d5d2d4eee9b80032181a8f936a65/pkg/config/config.go#L1396-L1402

There's no "restore function" returned by UpdateGlobal. The comment should be updated, or code should be aligned with comment.

Contributor guide