Format all files
Formatted all files with uncrustify.
This commit is contained in:
@ -404,7 +404,6 @@ bool test_multiple_masters(TestConnections& test, MYSQL* pSlave)
|
||||
|
||||
return test.global_result == 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
|
||||
@ -21,7 +21,8 @@ int main(int argc, char** argv)
|
||||
|
||||
test.maxscales->connect();
|
||||
|
||||
Row server1 = get_row(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, @@last_insert_id, id FROM test.t1");
|
||||
Row server1 = get_row(test.maxscales->conn_rwsplit[0],
|
||||
"SELECT @@server_id, @@last_insert_id, id FROM test.t1");
|
||||
Row server2 = get_row(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM test.t2");
|
||||
Row server3 = get_row(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM test.t3");
|
||||
Row server4 = get_row(test.maxscales->conn_rwsplit[0], "SELECT @@server_id, id FROM test.t4");
|
||||
@ -29,10 +30,14 @@ int main(int argc, char** argv)
|
||||
test.maxscales->disconnect();
|
||||
|
||||
test.repl->connect();
|
||||
test.expect(server1[0] == test.repl->get_server_id_str(0), "First query without hint should go to server1, the master");
|
||||
test.expect(server2[0] == test.repl->get_server_id_str(1), "Second query without hint should go to server2, the slave");
|
||||
test.expect(server3[0] == test.repl->get_server_id_str(2), "First query with hint should go to server3, the first unmonitored server");
|
||||
test.expect(server4[0] == test.repl->get_server_id_str(3), "Second query with hint should go to server4, the second unmonitored server");
|
||||
test.expect(server1[0] == test.repl->get_server_id_str(0),
|
||||
"First query without hint should go to server1, the master");
|
||||
test.expect(server2[0] == test.repl->get_server_id_str(1),
|
||||
"Second query without hint should go to server2, the slave");
|
||||
test.expect(server3[0] == test.repl->get_server_id_str(2),
|
||||
"First query with hint should go to server3, the first unmonitored server");
|
||||
test.expect(server4[0] == test.repl->get_server_id_str(3),
|
||||
"Second query with hint should go to server4, the second unmonitored server");
|
||||
test.repl->disconnect();
|
||||
|
||||
return test.global_result;
|
||||
|
||||
@ -626,7 +626,9 @@ void TestConnections::process_template(int m, const char* template_name, const c
|
||||
|
||||
if (backend_ssl)
|
||||
{
|
||||
ss << " -e \"s|type=server|type=server\\nssl=required\\nssl_cert=/###access_homedir###/certs/client-cert.pem\\nssl_key=/###access_homedir###/certs/client-key.pem\\nssl_ca_cert=/###access_homedir###/certs/ca.pem|g\" ";
|
||||
ss
|
||||
<<
|
||||
" -e \"s|type=server|type=server\\nssl=required\\nssl_cert=/###access_homedir###/certs/client-cert.pem\\nssl_key=/###access_homedir###/certs/client-key.pem\\nssl_ca_cert=/###access_homedir###/certs/ca.pem|g\" ";
|
||||
}
|
||||
|
||||
ss << " -e \"s/###threads###/" << threads << "/\" ";
|
||||
|
||||
Reference in New Issue
Block a user