Partially revert 4ba011266843857bbd3201e5b925a47e88e1808f

Add back leading operator enforcement.
This commit is contained in:
Markus Mäkelä
2018-09-20 15:26:51 +03:00
parent d8d0b1a29c
commit 71ffef5708
95 changed files with 1395 additions and 1392 deletions

View File

@ -31,11 +31,11 @@ int check_connnections_only_to_master(TestConnections* Test, int master)
printf("Checking number of connections to each node\n");
for (int i = 0; i < Test->repl->N; i++)
{
conn_num
= get_conn_num(Test->repl->nodes[i],
Test->maxscales->ip(0),
Test->maxscales->hostname[0],
(char*) "test");
conn_num =
get_conn_num(Test->repl->nodes[i],
Test->maxscales->ip(0),
Test->maxscales->hostname[0],
(char*) "test");
printf("Connections to node %d (%s):\t%d\n", i, Test->repl->IP[i], conn_num);
if (((i == master) && (conn_num != 1)) || ((i != master) && (conn_num != 0)))
{