1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +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:
tomas@whalegate.ndb.mysql.com
2007-07-25 07:22:28 +02:00
parent d00282ae36
commit 483555d323

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);