From 253a8df24c600ed5607dc483a868a22a4f0c85f2 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 25 Jul 2007 07:22:28 +0200 Subject: [PATCH] wait_until_ready may return greater that 1 since wait time for second node to connect is 0 --- storage/ndb/ndbapi-examples/ndbapi_async1/ndbapi_async1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/ndb/ndbapi-examples/ndbapi_async1/ndbapi_async1.cpp b/storage/ndb/ndbapi-examples/ndbapi_async1/ndbapi_async1.cpp index a195a419aaf..1f19f36d674 100644 --- a/storage/ndb/ndbapi-examples/ndbapi_async1/ndbapi_async1.cpp +++ b/storage/ndb/ndbapi-examples/ndbapi_async1/ndbapi_async1.cpp @@ -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);