diff options
author | unknown <jani@a80-186-41-201.elisa-laajakaista.fi> | 2004-10-07 20:30:30 +0300 |
---|---|---|
committer | unknown <jani@a80-186-41-201.elisa-laajakaista.fi> | 2004-10-07 20:30:30 +0300 |
commit | 66bdcf8439c3397856d028b13a6f0bb09769434d (patch) | |
tree | d9aa4ec964f67622b1a73f802d87be6ee54b686a /scripts/mysqlhotcopy.sh | |
parent | 7949ffc86aa4789a8c3fe886721db974d9914c79 (diff) | |
download | mariadb-git-66bdcf8439c3397856d028b13a6f0bb09769434d.tar.gz |
Fixed Bug#5575, mysqlhotcopy is broken when using --noindices
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r-- | scripts/mysqlhotcopy.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh index b90ca4dc7c0..f9e29e33195 100644 --- a/scripts/mysqlhotcopy.sh +++ b/scripts/mysqlhotcopy.sh @@ -8,7 +8,7 @@ use File::Path; use DBI; use Sys::Hostname; use File::Copy; -use File::Temp; +use File::Temp qw(tempfile); =head1 NAME @@ -39,7 +39,7 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome. # Documentation continued at end of file -my $VERSION = "1.21"; +my $VERSION = "1.22"; my $opt_tmpdir = $ENV{TMPDIR} || "/tmp"; @@ -654,8 +654,8 @@ sub copy_index } elsif ($opt{method} =~ /^scp\b/) { - my ($fh, $tmp)=tempfile('mysqlhotcopy-XXXXXX', DIR => $opt_tmpdir); - die "Can\'t create/open file in $opt_tmpdir\n"; + my ($fh, $tmp)= tempfile('mysqlhotcopy-XXXXXX', DIR => $opt_tmpdir) or + die "Can\'t create/open file in $opt_tmpdir\n"; if (syswrite($fh,$buff) != length($buff)) { die "Error when writing data to $tmp: $!\n"; |