Merge pull request #177 from percona/PT-93

PT-93 Made ID to match query key
This commit is contained in:
Carlos Salguero
2017-03-21 19:26:20 +02:00
committed by GitHub

View File

@@ -465,7 +465,7 @@ func getData(i iter, filters []docsFilter) []stat {
if s, ok = stats[key]; !ok { if s, ok = stats[key]; !ok {
realQuery, _ := getQueryField(doc.Query) realQuery, _ := getQueryField(doc.Query)
s = &stat{ s = &stat{
ID: fmt.Sprintf("%x", md5.Sum([]byte(fp+doc.Ns))), ID: fmt.Sprintf("%x", md5.Sum([]byte(key))),
Operation: doc.Op, Operation: doc.Op,
Fingerprint: fp, Fingerprint: fp,
Namespace: doc.Ns, Namespace: doc.Ns,