1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Bug#17574 Detect cluster start failure and "fail" ndb_* tests

- Update for 5.1
This commit is contained in:
msvensson@shellback.(none)
2006-03-07 20:35:59 +01:00
parent a3d9bb416d
commit 773e6ddec5

View File

@@ -1563,7 +1563,6 @@ sub ndbcluster_install_slave () {
"--core"],
"", "", "", "") )
{
mtr_error("Error ndbcluster_install_slave");
return 1;
}
@@ -1793,9 +1792,20 @@ sub mysql_install_db () {
if ( ndbcluster_install_slave() )
{
# failed to install, disable usage but flag that its no ok
$opt_with_ndbcluster_slave= 0;
$flag_ndb_slave_status_ok= 0;
if ( $opt_force)
{
# failed to install, disable usage and flag that its no ok
mtr_report("ndbcluster_install_slave failed, " .
"continuing without slave cluster");
$opt_with_ndbcluster_slave= 0;
$flag_ndb_slave_status_ok= 0;
}
else
{
print "Aborting: Failed to install ndb cluster\n";
print "To continue, re-run with '--force'.\n";
mtr_exit(1);
}
}
return 0;