diff options
author | unknown <stewart@mysql.com[stewart]> | 2007-03-22 22:34:55 +1100 |
---|---|---|
committer | unknown <stewart@mysql.com[stewart]> | 2007-03-22 22:34:55 +1100 |
commit | c59722ad839db68b751e2f9be64671edc95cefab (patch) | |
tree | 660353acb0c9c06232e3f685646486322c6e8161 /storage/ndb/include/mgmapi/mgmapi.h | |
parent | e26da089a031982ff07df802fac2464d8bcab9a8 (diff) | |
download | mariadb-git-c59722ad839db68b751e2f9be64671edc95cefab.tar.gz |
[PATCH] WL#3704 mgmapi timeouts: clarify multiple mgmd connect timeout semantics
Index: ndb-work/storage/ndb/include/mgmapi/mgmapi.h
===================================================================
storage/ndb/include/mgmapi/mgmapi.h:
WL#3704 mgmapi timeouts: clarify multiple mgmd connect timeout semantics
storage/ndb/src/mgmapi/mgmapi.cpp:
WL#3704 mgmapi timeouts: clarify multiple mgmd connect timeout semantics
Diffstat (limited to 'storage/ndb/include/mgmapi/mgmapi.h')
-rw-r--r-- | storage/ndb/include/mgmapi/mgmapi.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/storage/ndb/include/mgmapi/mgmapi.h b/storage/ndb/include/mgmapi/mgmapi.h index f862dd72f9b..2bedba963e2 100644 --- a/storage/ndb/include/mgmapi/mgmapi.h +++ b/storage/ndb/include/mgmapi/mgmapi.h @@ -515,6 +515,18 @@ extern "C" { int ndb_mgm_set_connectstring(NdbMgmHandle handle, const char *connect_string); + /** + * Returns the number of management servers in the connect string + * (as set by ndb_mgm_set_connectstring()). This can be used + * to help work out how long the maximum amount of time that + * ndb_mgm_connect can take. + * + * @param handle Management handle + * + * @return < 0 on error + */ + int ndb_mgm_number_of_mgmd_in_connect_string(NdbMgmHandle handle); + int ndb_mgm_set_configuration_nodeid(NdbMgmHandle handle, int nodeid); int ndb_mgm_get_configuration_nodeid(NdbMgmHandle handle); int ndb_mgm_get_connected_port(NdbMgmHandle handle); @@ -570,6 +582,11 @@ extern "C" { * Connects to a management server. Connectstring is set by * ndb_mgm_set_connectstring(). * + * The timeout value is for connect to each management server. + * Use ndb_mgm_number_of_mgmd_in_connect_string to work out + * the approximate maximum amount of time that could be spent in this + * function. + * * @param handle Management handle. * @param no_retries Number of retries to connect * (0 means connect once). |