Skip to content

Commit

Permalink
Resolving Issue \#2, used a function call instead of calling systemct…
Browse files Browse the repository at this point in the history
…l to start the database, when failing to create the snapshot
  • Loading branch information
Neil MacGregor committed Oct 20, 2022
1 parent 2eafbf2 commit f3d5f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre-scan.pl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
`$LVcommand`;
if ($? != 0) { # then the snapshot failed
&log ("Failed to create the snapshot -- check for sufficient (250Mb) space in the '" . $cfg->{"mysqlVolumeGroup"} . "' volume group?");
`systemctl start mariadb.service`; # the slave process will autorestart
startDatabase();
&gone ("Backup failed, but I tried to restart the primary mariadb.service"); # does not return
}
$DEBUG && print "Snapshot created: $snapLV...\n";
Expand Down

0 comments on commit f3d5f65

Please sign in to comment.