1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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:
unknown
2007-07-25 07:22:28 +02:00
parent d8effbe368
commit 253a8df24c

View File

@ -75,7 +75,7 @@ int main(int argc, char** argv)
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;
exit(-1);