mysqlhotcopy v1.14 problem with RAID regular expression
am 20.02.2003 19:52:07 von Tom MetroHow-To-Repeat: create a database with a name like 'riponk12', then run mysqlhotcopy. You will see an error from 'cp'.
Using mysqlhotcopy v1.14 I started seeing errors like this:
> cp: missing destination file
> Try `cp --help' for more information.
> cp: missing destination file
> Try `cp --help' for more information.
investigating led to this code:
sub copy_files {
[...]
my @non_raid = grep { $_ !~ m:\d\d/: } @$files;
being triggered by a database name like 'riponk12'.
Not knowing more about the "forthcoming MySQL ``RAID'' table subdirectory
layouts" (quoted from the change log), I can't say whether a more specific
regular expression could be used, or whether this should be addressed via
a command line option, or just better documentation warning users to avoid
database names ending in a pair of digits. Regardless, the existing code
will run into problems if users happen upon database names that match the
regular expression.
-Tom
------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail bugs-thread13812@lists.mysql.com
To unsubscribe, e-mail