mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 18:34:59 +00:00
PMM-9288 Remove DB name from user field.
This commit is contained in:
@@ -96,7 +96,7 @@ func (s *Stats) Add(doc proto.SystemProfile) error {
|
|||||||
QueryHash: doc.QueryHash,
|
QueryHash: doc.QueryHash,
|
||||||
AppName: doc.AppName,
|
AppName: doc.AppName,
|
||||||
Client: doc.Client,
|
Client: doc.Client,
|
||||||
User: doc.User,
|
User: strings.Split(doc.User, "@")[0],
|
||||||
Comments: doc.Comments,
|
Comments: doc.Comments,
|
||||||
}
|
}
|
||||||
s.setQueryInfoAndCounters(key, qiac)
|
s.setQueryInfoAndCounters(key, qiac)
|
||||||
|
Reference in New Issue
Block a user