summaryrefslogtreecommitdiff
path: root/ndb/src/mgmapi/mgmapi.cpp
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-05-04 18:48:33 +0200
committerunknown <joreland@mysql.com>2005-05-04 18:48:33 +0200
commitad7e80e7b15851ce9787447083d14dd92d400586 (patch)
tree21ae3d97ec90b7a59679d1a31a1d4fbcdd9ae9c2 /ndb/src/mgmapi/mgmapi.cpp
parentec1a4d55f865566c3dc03060c06433186f3a1cb9 (diff)
parent80abad58fc60e4cd93b31f24030340c380ddab77 (diff)
downloadmariadb-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.cpp6
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);