In mysqlhotcopy, function copy_files, there is a line,
my @non_raid = grep { $_ !~ m:\d\d/: } @$files;
(dont you just love perl?).
If the database name in question is, for example, testone_750, a perfectly
legal database name (??), then no files get copied! and the mysqlhotcopy
fails.
I presume (again ??) that the above line is trying to strip out all ../
matches.
If so, then wouldn't { $_ !~ m:\.\./: } do just as well?
I changed the
my @non_raid = grep { $_ !~ m:\d\d/: } @$files;
to
my @non_raid = grep { $_ !~ m:\.\./: } @$files;
and it seemed to fix my problems.
Regards,
Ian Collins.
---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php