Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#50086
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
bufferflies authored and ti-chi-bot committed Jan 11, 2024
1 parent 4a8c7b2 commit 4a2a474
Show file tree
Hide file tree
Showing 4 changed files with 637 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pkg/executor/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ func (c *Compiler) Compile(ctx context.Context, stmtNode ast.StmtNode) (_ *ExecS
})

if preparedObj != nil {
<<<<<<< HEAD
CountStmtNode(preparedObj.PreparedAst.Stmt, sessVars.InRestrictedSQL)
} else {
CountStmtNode(stmtNode, sessVars.InRestrictedSQL)
=======
CountStmtNode(preparedObj.PreparedAst.Stmt, sessVars.InRestrictedSQL, stmtCtx.ResourceGroupName)
} else {
CountStmtNode(stmtNode, sessVars.InRestrictedSQL, stmtCtx.ResourceGroupName)
>>>>>>> 190488d0dbb (metrics: add new row panel for tidb query (#50086))
}
var lowerPriority bool
if c.Ctx.GetSessionVars().StmtCtx.Priority == mysql.NoPriority {
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/grafana/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@
},
"yaxes": [
{
"format": "short",
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
Expand Down
Loading

0 comments on commit 4a2a474

Please sign in to comment.