Merge lp:~percona-toolkit-dev/percona-toolkit/pt-kill-should-print-query-fingerprint-hash-after-killing-a-query-1391240 into lp:~percona-toolkit-dev/percona-toolkit/release-2.2.13
Proposed by
Frank Cizmich
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Daniel Nichter | ||||
Approved revision: | 613 | ||||
Merged at revision: | 614 | ||||
Proposed branch: | lp:~percona-toolkit-dev/percona-toolkit/pt-kill-should-print-query-fingerprint-hash-after-killing-a-query-1391240 | ||||
Merge into: | lp:~percona-toolkit-dev/percona-toolkit/release-2.2.13 | ||||
Diff against target: |
91 lines (+33/-2) 2 files modified
bin/pt-kill (+22/-1) t/pt-kill/match.t (+11/-1) |
||||
To merge this branch: | bzr merge lp:~percona-toolkit-dev/percona-toolkit/pt-kill-should-print-query-fingerprint-hash-after-killing-a-query-1391240 | ||||
Related bugs: |
|
||||
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Nichter | Needs Fixing | ||
Review via email: mp+245160@code.launchpad.net |
Description of the change
Adds a --fingerprint option to pt-kill
This prints the hash fingerprint after every query kill (or print), equivalent to the one in pt-query-digest.
This is useful for cross-referencing.
Note:
A tiny modification was made in the MasterSlave module fatpacked in pt-kill.
Since most tools are out of sync with that module, I left the delicate task of synching them for later, since the risks outweigh the benefits at this point.
To post a comment you must log in.
This mixes terms: fingerprint is "select c from t where id=?", checksum is 0xA4F90EC8, so --fingerprint is misleading: users will expect the former. Look in pqd docs and see if we call it "query ID" or "query checksum" and then either --query-id or --query-checksum.
Also the line
my $chksm = uc substr( md5_hex( $fp), -16);
duplicates Transformers: :make_checksum( ). Granted it's just one line though.