Skip to content

Commit

Permalink
session, metrics: refine the resource control metrics (#41045)
Browse files Browse the repository at this point in the history
ref #38825
  • Loading branch information
JmPotato authored Feb 6, 2023
1 parent ddaf0d7 commit b78c62f
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 70 deletions.
3 changes: 1 addition & 2 deletions ddl/ddl_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const (
// When setting the placement policy with "PLACEMENT POLICY `default`",
// it means to remove placement policy from the specified object.
defaultPlacementPolicyName = "default"
defaultResourceGroupName = "default"
tiflashCheckPendingTablesWaitTime = 3000 * time.Millisecond
// Once tiflashCheckPendingTablesLimit is reached, we trigger a limiter detection.
tiflashCheckPendingTablesLimit = 100
Expand Down Expand Up @@ -7635,7 +7634,7 @@ func (d *ddl) CreateResourceGroup(ctx sessionctx.Context, stmt *ast.CreateResour
return infoschema.ErrResourceGroupExists.GenWithStackByArgs(groupName)
}

if groupName.L == defaultResourceGroupName {
if groupName.L == variable.DefaultResourceGroupName {
return errors.Trace(infoschema.ErrReservedSyntax.GenWithStackByArgs(groupName))
}

Expand Down
Loading

0 comments on commit b78c62f

Please sign in to comment.