Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -35,7 +35,7 @@ int main(int argc, char** argv)
test.tprintf("Stopping master and waiting for failover. Check that another server is promoted.");
test.tprintf(LINE);
const int old_master_id = get_master_server_id(test); // Read master id now before shutdown.
const int old_master_id = get_master_server_id(test); // Read master id now before shutdown.
const int master_index = test.repl->master;
test.repl->stop_node(master_index);
test.maxscales->wait_for_monitor();
@ -79,9 +79,12 @@ int main(int argc, char** argv)
test.assert(gtid_final == gtid_old_master, "Old master did not successfully rejoin the cluster.");
// Switch master back to server1 so last check is faster
int ec;
test.maxscales->ssh_node_output(0, "maxadmin call command mysqlmon switchover "
"MySQL-Monitor server1 server2" , true, &ec);
test.maxscales->wait_for_monitor(); // Wait for monitor to update status
test.maxscales->ssh_node_output(0,
"maxadmin call command mysqlmon switchover "
"MySQL-Monitor server1 server2",
true,
&ec);
test.maxscales->wait_for_monitor(); // Wait for monitor to update status
get_output(test);
master_id = get_master_server_id(test);
test.assert(master_id == old_master_id, "Switchover back to server1 failed.");