diff options
author | unknown <joreland@mysql.com> | 2005-05-04 18:48:33 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-05-04 18:48:33 +0200 |
commit | ad7e80e7b15851ce9787447083d14dd92d400586 (patch) | |
tree | 21ae3d97ec90b7a59679d1a31a1d4fbcdd9ae9c2 /ndb/src/mgmapi/mgmapi.cpp | |
parent | ec1a4d55f865566c3dc03060c06433186f3a1cb9 (diff) | |
parent | 80abad58fc60e4cd93b31f24030340c380ddab77 (diff) | |
download | mariadb-git-ad7e80e7b15851ce9787447083d14dd92d400586.tar.gz |
merge
ndb/src/mgmapi/mgmapi.cpp:
Auto merged
Diffstat (limited to 'ndb/src/mgmapi/mgmapi.cpp')
-rw-r--r-- | ndb/src/mgmapi/mgmapi.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ndb/src/mgmapi/mgmapi.cpp b/ndb/src/mgmapi/mgmapi.cpp index ab32de5b9ca..e5e00b78bfa 100644 --- a/ndb/src/mgmapi/mgmapi.cpp +++ b/ndb/src/mgmapi/mgmapi.cpp @@ -892,7 +892,10 @@ ndb_mgm_restart2(NdbMgmHandle handle, int no_of_nodes, const int * node_list, args.put("initialstart", initial); args.put("nostart", nostart); const Properties *reply; + const int timeout = handle->read_timeout; + handle->read_timeout= 5*60*1000; // 5 minutes reply = ndb_mgm_call(handle, restart_reply, "restart all", &args); + handle->read_timeout= timeout; CHECK_REPLY(reply, -1); BaseString result; @@ -925,7 +928,10 @@ ndb_mgm_restart2(NdbMgmHandle handle, int no_of_nodes, const int * node_list, args.put("nostart", nostart); const Properties *reply; + const int timeout = handle->read_timeout; + handle->read_timeout= 5*60*1000; // 5 minutes reply = ndb_mgm_call(handle, restart_reply, "restart node", &args); + handle->read_timeout= timeout; if(reply != NULL) { BaseString result; reply->get("result", result); |