pt-table-checksum max load 20% rounds down

Bug #1253872 reported by Rob Smith
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to
Fix Released
Frank Cizmich

Bug Description

When running pt-table-checksum or pt-online-schema on a server that is unused, setting the 20% max load fails due to it rounding down.

threads_running = 4
threads_running + 20% = 4.8
max_load == threads_running == 4

I purpose that this round up so it will run until max_threads are >=5 rather then the current 4.

What I would actually like to do is say:

max-load is 25 or 120% of threads_running, whichever is greater

Related branches

Changed in percona-toolkit:
status: New → Fix Committed
importance: Undecided → Low
milestone: none → 2.2.10
assignee: nobody → Frank Cizmich (frank-cizmich)
Revision history for this message
Frank Cizmich (frank-cizmich) wrote :

Quick fix committed. Simply rounds up final value for now.

Changed in percona-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers