diff options
author | unknown <stewart@mysql.com> | 2004-12-20 12:31:45 +1100 |
---|---|---|
committer | unknown <stewart@mysql.com> | 2004-12-20 12:31:45 +1100 |
commit | 168e57197657ccd4babc4dfcc81e8f0216db0342 (patch) | |
tree | 102319fa77ceff40c70e4838b2fa66d54880abcd /ndb/src/mgmapi | |
parent | 7e5be0fefd7635878baf1788b47e59bdc559de5b (diff) | |
parent | 87c85d6f34e9aa58c81bb730a61ffcd8319b1ad4 (diff) | |
download | mariadb-git-168e57197657ccd4babc4dfcc81e8f0216db0342.tar.gz |
Merge mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-port
into mysql.com:/home/stewart/Documents/MySQL/5.0/ndb-dynamic-ports-impl2
ndb/src/mgmapi/mgmapi.cpp:
Auto merged
ndb/src/mgmsrv/MgmtSrvr.cpp:
Auto merged
ndb/src/mgmsrv/MgmtSrvr.hpp:
Auto merged
ndb/src/mgmsrv/Services.cpp:
Auto merged
ndb/src/mgmsrv/Services.hpp:
Auto merged
Diffstat (limited to 'ndb/src/mgmapi')
-rw-r--r-- | ndb/src/mgmapi/mgmapi.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ndb/src/mgmapi/mgmapi.cpp b/ndb/src/mgmapi/mgmapi.cpp index 92132f12543..5721d359ecd 100644 --- a/ndb/src/mgmapi/mgmapi.cpp +++ b/ndb/src/mgmapi/mgmapi.cpp @@ -2020,5 +2020,49 @@ ndb_mgm_set_connection_int_parameter(NdbMgmHandle handle, return res; } +extern "C" +int +ndb_mgm_get_connection_int_parameter(NdbMgmHandle handle, + int node1, + int node2, + int param, + unsigned *value, + struct ndb_mgm_reply* mgmreply){ + DBUG_ENTER("ndb_mgm_get_connection_int_parameter"); + CHECK_HANDLE(handle, -1); + CHECK_CONNECTED(handle, -1); + + Properties args; + args.put("node1", node1); + args.put("node2", node2); + args.put("param", param); + + const ParserRow<ParserDummy> reply[]= { + MGM_CMD("get connection parameter reply", NULL, ""), + MGM_ARG("result", String, Mandatory, "Error message"), + MGM_ARG("value", Int, Mandatory, "Current Value"), + MGM_END() + }; + + const Properties *prop; + prop= ndb_mgm_call(handle, reply, "get connection parameter", &args); + CHECK_REPLY(prop, -1); + + int res= -1; + do { + const char * buf; + if(!prop->get("result", &buf) || strcmp(buf, "Ok") != 0){ + ndbout_c("ERROR Message: %s\n", buf); + break; + } + res= 0; + } while(0); + + prop->get("value",value); + + delete prop; + return res; +} + template class Vector<const ParserRow<ParserDummy>*>; |