pt-online-schema-change lacks feature of adding the "DATA DIRECTORY" to a new table

Bug #1638293 reported by Daniel Guzmán Burgos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Carlos Salguero

Bug Description

pt-osc only accepts changes that can be done with an ALTER TABLE. To move a table to a different directory, one must need to execute the full CREATE TABLE ... DATA DIRECTORY = /new/path

In order to do so, a new parameter can be added: --new-partition = /new/path

Code change can be something like:

if ( $o->get('new-partition') ) {
    my $ady = " DATA DIRECTORY = '". $o->get('new-partition')."'";
    $sql = $sql.${ady};
}

Revision history for this message
Carlos Salguero (carlos-salguero) wrote :

Thanks for your patch.
I've merged your code: https://github.com/percona/percona-toolkit/pull/143

Changed in percona-toolkit:
importance: Undecided → Medium
assignee: nobody → Carlos Salguero (carlos-salguero)
status: New → Fix Committed
Changed in percona-toolkit:
milestone: none → 2.2.20
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: https://jira.percona.com/browse/PT-714

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.