PT-1554 Updated pt-query-digest to use a proper checksum

Now, the checksum field is a CHAR(32) instead of a BIGINT.

Previously it was failing on some MySQL versions since the truncated int
it was storing is not consistent. Now, by having an MD5 stored as a
CHAR(32) the checksum is consistent across MySQL and OS versions.

This is a breaking change and pt-query-digest history and review tables
are not backwards compatible.
This commit is contained in:
Carlos Salguero
2018-06-13 11:25:47 -03:00
parent 81582f3ce3
commit f95d448e03
7 changed files with 163 additions and 160 deletions

View File

@@ -64,8 +64,8 @@ SELECT col FROM foo_tbl\G
# 1s
# 10s+
# Review information
# first_seen: 2007-12-18 11:48:27
# last_seen: 2007-12-18 11:49:30
# first_seen: 2007-12-18 11:48:57
# last_seen: 2007-12-18 11:49:07
# reviewed_by:
# reviewed_on:
# comments:

View File

@@ -64,8 +64,8 @@ SELECT col FROM foo_tbl\G
# 1s
# 10s+
# Review information
# first_seen: 2007-12-18 11:48:27
# last_seen: 2007-12-18 11:49:30
# first_seen: 2007-12-18 11:48:57
# last_seen: 2007-12-18 11:49:07
# reviewed_by:
# reviewed_on:
# comments:

View File

@@ -64,8 +64,8 @@ SELECT col FROM foo_tbl\G
# 1s
# 10s+
# Review information
# first_seen: 2007-12-18 11:48:27
# last_seen: 2007-12-18 11:49:30
# first_seen: 2007-12-18 11:48:57
# last_seen: 2007-12-18 11:49:07
# reviewed_by:
# reviewed_on:
# comments:

View File

@@ -65,8 +65,8 @@ SELECT col FROM foo_tbl\G
# 1s
# 10s+
# Review information
# first_seen: 2007-12-18 11:48:27
# last_seen: 2007-12-18 11:49:30
# first_seen: 2007-12-18 11:48:57
# last_seen: 2007-12-18 11:49:07
# reviewed_by:
# reviewed_on:
# comments: