Use sleeps and waits with mxs1719
Going the belt-and-suspenders way of both sleeping and waiting for the moitor should make sure MaxScale has at least some time to start up, query the servers and do a single iteration of monitoring.
This commit is contained in:
@ -75,6 +75,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
if (test.maxscales->start() == 0)
|
if (test.maxscales->start() == 0)
|
||||||
{
|
{
|
||||||
|
sleep(10);
|
||||||
test.maxscales->wait_for_monitor();
|
test.maxscales->wait_for_monitor();
|
||||||
|
|
||||||
if (test.maxscales->connect_rwsplit() == 0)
|
if (test.maxscales->connect_rwsplit() == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user