On Mon, Feb 11, 2002 at 03:04:47PM +1300, Ian Collins wrote:
> 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.
That's bad.
> I presume (again ??) that the above line is trying to strip out all
> ../ matches.
Actually it's trying to strip out every database name which contains
two digits in a row. That's clearly not ideal. We need something
more specific there.
> If so, then wouldn't { $_ !~ m:\.\./: } do just as well?
Nope.
> 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.
It'll fix your problem, but not THE problem.
Jeremy
--
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936
MySQL 3.23.47-max: up 3 days, processed 121,642,679 queries (403/sec. avg)
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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