diff options
author | unknown <jani@rhols221.adsl.netsonic.fi> | 2003-10-22 18:40:37 +0300 |
---|---|---|
committer | unknown <jani@rhols221.adsl.netsonic.fi> | 2003-10-22 18:40:37 +0300 |
commit | 3fdca01f2426b0c40324bed9e416f58733d96c57 (patch) | |
tree | f926a82746025177325b2526f6cc07d42a7880fd /scripts/mysqlhotcopy.sh | |
parent | cbc5304742cdb7da8cd3ef8dbcfe15eef01cdb1e (diff) | |
download | mariadb-git-3fdca01f2426b0c40324bed9e416f58733d96c57.tar.gz |
Fixed a bug in mysqlhotcopy, which made special table names
to cause program to abort. Such table name could have been
one with a semicolon (:) in the middle.
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r-- | scripts/mysqlhotcopy.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh index 654e5466e12..160a2611374 100644 --- a/scripts/mysqlhotcopy.sh +++ b/scripts/mysqlhotcopy.sh @@ -453,13 +453,13 @@ if ( $opt{dryrun} ) { } else { my $start = time; - $dbh->do("LOCK TABLES $hc_locks"); + $dbh->do('LOCK TABLES $hc_locks'); printf "Locked $num_tables tables in %d seconds.\n", time-$start unless $opt{quiet}; $hc_started = time; # count from time lock is granted # flush tables to make on-disk copy uptodate $start = time; - $dbh->do("FLUSH TABLES /*!32323 $hc_tables */"); + $dbh->do('FLUSH TABLES /*!32323 $hc_tables */'); printf "Flushed tables ($hc_tables) in %d seconds.\n", time-$start unless $opt{quiet}; $dbh->do( "FLUSH LOGS" ) if ( $opt{flushlog} ); $dbh->do( "RESET MASTER" ) if ( $opt{resetmaster} ); @@ -467,7 +467,7 @@ else { if ( $opt{record_log_pos} ) { record_log_pos( $dbh, $opt{record_log_pos} ); - $dbh->do("FLUSH TABLES /*!32323 $hc_tables */"); + $dbh->do('FLUSH TABLES /*!32323 $hc_tables */'); } } |