diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2006-05-17 00:27:19 +0200 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2006-05-17 00:27:19 +0200 |
commit | 39ad30a46c275401101e4b799e137fce8dda5130 (patch) | |
tree | c1e71af1dd2c1be95b7602909a2769953265d74c /storage | |
parent | 5fca6059f7b618a37bacf06ffa28e5300bc36f53 (diff) | |
parent | 6ee68c82fbf92624036b5b54dcf22c522ac4556f (diff) | |
download | mariadb-git-39ad30a46c275401101e4b799e137fce8dda5130.tar.gz |
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
storage/ndb/src/mgmapi/mgmapi.cpp:
Auto merged
storage/ndb/tools/waiter.cpp:
Auto merged
Diffstat (limited to 'storage')
-rw-r--r-- | storage/ndb/src/mgmapi/mgmapi.cpp | 3 | ||||
-rw-r--r-- | storage/ndb/tools/waiter.cpp | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/storage/ndb/src/mgmapi/mgmapi.cpp b/storage/ndb/src/mgmapi/mgmapi.cpp index 08232471474..b3d2d403dcc 100644 --- a/storage/ndb/src/mgmapi/mgmapi.cpp +++ b/storage/ndb/src/mgmapi/mgmapi.cpp @@ -701,10 +701,12 @@ ndb_mgm_get_status(NdbMgmHandle handle) Vector<BaseString> split; tmp.split(split, ":"); if(split.size() != 2){ + SET_ERROR(handle, NDB_MGM_ILLEGAL_NODE_STATUS, buf); return NULL; } if(!(split[0].trim() == "nodes")){ + SET_ERROR(handle, NDB_MGM_ILLEGAL_NODE_STATUS, buf); return NULL; } @@ -752,6 +754,7 @@ ndb_mgm_get_status(NdbMgmHandle handle) if(i+1 != noOfNodes){ free(state); + SET_ERROR(handle, NDB_MGM_ILLEGAL_NODE_STATUS, "Node count mismatch"); return NULL; } diff --git a/storage/ndb/tools/waiter.cpp b/storage/ndb/tools/waiter.cpp index db90bd8bd90..cb02d5e7c36 100644 --- a/storage/ndb/tools/waiter.cpp +++ b/storage/ndb/tools/waiter.cpp @@ -124,6 +124,12 @@ getStatus(){ ndbout << "status==NULL, retries="<<retries<<endl; MGMERR(handle); retries++; + ndb_mgm_disconnect(handle); + if (ndb_mgm_connect(handle,0,0,1)) { + MGMERR(handle); + g_err << "Reconnect failed" << endl; + break; + } continue; } int count = status->no_of_nodes; |