From d4959473a8b803dc80fb89c3f2b2adbf90c65c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Wed, 11 Nov 2009 13:12:25 +0000 Subject: [PATCH] Correct spelling in coment. Prefix the staging directory with "tmp." to make it easier to see that a directory might be a botched staging directory. --- misc-scripts/CopyDBoverServer.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-scripts/CopyDBoverServer.pl b/misc-scripts/CopyDBoverServer.pl index 6ed7366cb3..fa956207e2 100755 --- a/misc-scripts/CopyDBoverServer.pl +++ b/misc-scripts/CopyDBoverServer.pl @@ -293,7 +293,7 @@ $in->close(); ##====================================================================## ## Take the copy specifications from the @todo list and for each ## -## sepcification copy the database to a staging area using rsync, ## +## specification copy the database to a staging area using rsync, ## ## check it with myisamchk, and move it in place in the database ## ## directory. ## ##====================================================================## @@ -401,7 +401,7 @@ foreach my $spec (@todo) { my $tmp_dir = canonpath( catdir( $target_dir, updir(), 'tmp' ) ); - my $staging_dir = catdir( $tmp_dir, $target_db ); + my $staging_dir = catdir( $tmp_dir, sprintf( "tmp.%s", $target_db ) ); my $destination_dir = catdir( $target_dir, $target_db ); $spec->{'status'} = 'SUCCESS'; # Assume success until failure. -- GitLab