Merge lp:~percona-toolkit-dev/percona-toolkit/pt-table-checksum-max-load-20-percent-rounds-down-1253872 into lp:~percona-toolkit-dev/percona-toolkit/release-2.2.10
Proposed by
Frank Cizmich
Status: | Merged |
---|---|
Approved by: | Daniel Nichter |
Approved revision: | 620 |
Merged at revision: | 611 |
Proposed branch: | lp:~percona-toolkit-dev/percona-toolkit/pt-table-checksum-max-load-20-percent-rounds-down-1253872 |
Merge into: | lp:~percona-toolkit-dev/percona-toolkit/release-2.2.10 |
Diff against target: |
213 lines (+32/-24) 9 files modified
bin/pt-online-schema-change (+3/-2) bin/pt-table-checksum (+3/-2) lib/MySQLStatusWaiter.pm (+3/-2) t/lib/MySQLStatusWaiter.t (+18/-14) t/pt-table-checksum/basics.t (+1/-0) t/pt-table-checksum/samples/default-results-5.5.txt (+1/-1) t/pt-table-checksum/samples/default-results-5.6.txt (+1/-1) t/pt-table-checksum/samples/static-chunk-size-results-5.5.txt (+1/-1) t/pt-table-checksum/samples/static-chunk-size-results-5.6.txt (+1/-1) |
To merge this branch: | bzr merge lp:~percona-toolkit-dev/percona-toolkit/pt-table-checksum-max-load-20-percent-rounds-down-1253872 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Nichter | Approve | ||
Review via email: mp+228738@code.launchpad.net |
Description of the change
added ceiling option to MySQLStatusWaiter so pt-table-checksum can round threshold = initial value + 20% up instead of down.
Net effect is to have a higher threshold than the initial one when low integer values are involved.
eg: 4 + 20% rounds to 5 instead of 4
To post a comment you must log in.
$args{ceiling} is introduced but nothing makes use of it, except the test? Is there a simpler way to do this, i.e. just round-up in the one place we calculate the value?