mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
wait_until_ready may return greater that 1 since wait time for second node to connect is 0
This commit is contained in:
@ -75,7 +75,7 @@ int main(int argc, char** argv)
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cluster_connection->wait_until_ready(30,0))
|
if (cluster_connection->wait_until_ready(30,0) < 0)
|
||||||
{
|
{
|
||||||
std::cout << "Cluster was not ready within 30 secs." << std::endl;
|
std::cout << "Cluster was not ready within 30 secs." << std::endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
Reference in New Issue
Block a user