Skip to content

Commit

Permalink
Jonathan Levin submitted this patch to fix a sporadic issue with back…
Browse files Browse the repository at this point in the history
…up directory creation
  • Loading branch information
kostecky committed Jan 25, 2012
1 parent 9f252bd commit 006a8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtradb-backup.pl
Expand Up @@ -164,7 +164,7 @@ ()
my $innoDbDir = catfile( $ihbDataDir, $innoDb );
&printLog("Path: $innoDbDir\n");
my $dbBackupDir = catfile( $destDir, $innoDb );
mkdir($dbBackupDir) || die ("could not create backup dir $dbBackupDir\n");
unless(-d $dbBackupDir) { mkdir($dbBackupDir) || die ("could not create backup dir $dbBackupDir\n"); }
my @frmFiles = glob( $innoDbDir . "/*.{frm,opt}" );
for my $frmFile (@frmFiles) {
&printLog("Backing-up file: $frmFile to $dbBackupDir\n");
Expand Down

0 comments on commit 006a8af

Please sign in to comment.