Adding --new-partition parameter in order to create the table on a different partition

This commit is contained in:
Daniel Guzman Burgos
2016-11-01 08:59:59 -05:00
parent 282be0a38f
commit 8b696950c5

View File

@@ -10108,6 +10108,10 @@ sub create_new_table {
if ( $o->get('default-engine') ) {
$sql =~ s/\s+ENGINE=\S+//;
}
if ( $o->get('new-partition') ) {
my $ady = " DATA DIRECTORY = '". $o->get('new-partition')."'";
$sql = $sql.${ady};
}
PTDEBUG && _d($sql);
eval {
$cxn->dbh()->do($sql);
@@ -11559,6 +11563,13 @@ cause unintended changes on replicas which use a different engine for
the same table. Specifying this option causes the new table to be
created with the system's default engine.
=item --new-partition
type: string
Create the new table on a different partition using the DATA DIRECTORY feature.
Only available on 5.6+
=item --defaults-file
short form: -F; type: string