TT#62907 add a fallback to sql backup

* if a use-partitioning is enabled for a table
      and this table is not suitable for it, the table
      is processed using the sql backup method.

Change-Id: Ia3d8bc4701cc31fed54465227e49ec4563e5c100
changes/59/32159/4
Kirill Solomko 7 years ago
parent ee25646d7b
commit a7fbb84777

@ -578,7 +578,11 @@ sub backup_table {
my $use_part = $self->env('use-partitioning') // 'no';
if ($use_part eq 'yes') {
$self->update_partitions($table);
eval { $self->update_partitions($table) };
if ($EVAL_ERROR) {
$self->debug("table=$table cannot be used for partitioning, falling back to sql backups");
$use_part = 'no';
}
}
my $data_moved = 0;;

Loading…
Cancel
Save