diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2006-05-17 00:25:51 +0200 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2006-05-17 00:25:51 +0200 |
commit | 7e3eddd9a1eef8079eb5c2240bfc3c2ccaee6d06 (patch) | |
tree | f8743aab7baf4ff64a3c301cb75d7f2b422d1f47 | |
parent | afb3f432b00e18c40613335207386645020318ce (diff) | |
parent | a7980fb6041d0a7d1fc94d2be0214f308c2d842a (diff) | |
download | mariadb-git-7e3eddd9a1eef8079eb5c2240bfc3c2ccaee6d06.tar.gz |
Merge tulin@production.mysql.com:mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-main
-rw-r--r-- | ndb/src/mgmapi/mgmapi.cpp | 3 | ||||
-rw-r--r-- | ndb/tools/waiter.cpp | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ndb/src/mgmapi/mgmapi.cpp b/ndb/src/mgmapi/mgmapi.cpp index 06b534ac0ca..fc9e5a20f4e 100644 --- a/ndb/src/mgmapi/mgmapi.cpp +++ b/ndb/src/mgmapi/mgmapi.cpp @@ -638,10 +638,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; } @@ -690,6 +692,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/ndb/tools/waiter.cpp b/ndb/tools/waiter.cpp index cc6a21428c8..9bd2befce15 100644 --- a/ndb/tools/waiter.cpp +++ b/ndb/tools/waiter.cpp @@ -129,6 +129,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; |