mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
wl2723 - ndb opt. nr
This commit is contained in:
@@ -62,6 +62,13 @@ int main(int argc, const char** argv){
|
||||
{
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
|
||||
if (con.wait_until_ready(30,0) < 0)
|
||||
{
|
||||
ndbout << "Cluster nodes not ready in 30 seconds." << endl;
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
|
||||
Ndb MyNdb( &con, db ? db : "TEST_DB" );
|
||||
|
||||
if(MyNdb.init() != 0){
|
||||
@@ -69,10 +76,6 @@ int main(int argc, const char** argv){
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
|
||||
// Connect to Ndb and wait for it to become ready
|
||||
while(MyNdb.waitUntilReady() != 0)
|
||||
ndbout << "Waiting for ndb to become ready..." << endl;
|
||||
|
||||
for(Uint32 i = optind; i<argc; i++)
|
||||
{
|
||||
const char* _tabname = argv[i];
|
||||
|
Reference in New Issue
Block a user