mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
wl2723 - ndb opt. nr
This commit is contained in:
@@ -66,6 +66,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){
|
||||
@@ -73,9 +80,6 @@ int main(int argc, const char** argv){
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
|
||||
while(MyNdb.waitUntilReady() != 0)
|
||||
ndbout << "Waiting for ndb to become ready..." << endl;
|
||||
|
||||
// Check if table exists in db
|
||||
const NdbDictionary::Table * pTab = NDBT_Table::discoverTableFromDb(&MyNdb, _tabname);
|
||||
if(pTab == NULL){
|
||||
|
Reference in New Issue
Block a user