From: Dyre Tjeldvoll Date: October 4 2012 12:31pm Subject: bzr push into mysql-5.5-cluster-7.2 branch (Dyre.Tjeldvoll:4085 to 4086) List-Archive: http://lists.mysql.com/commits/144953 Message-Id: <20121004123152.23506.59728.4086@khepri17.no.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 4086 Dyre Tjeldvoll 2012-10-04 Adding sleep call to shutdown command to simulate hanging requests modified: storage/ndb/mcc/request_handler.py 4085 Dyre Tjeldvoll 2012-10-04 Adding shutdown command and test client script added: storage/ndb/mcc/tst/tstcli.py modified: storage/ndb/mcc/request_handler.py === modified file 'storage/ndb/mcc/request_handler.py' --- a/storage/ndb/mcc/request_handler.py 2012-10-04 12:15:31 +0000 +++ b/storage/ndb/mcc/request_handler.py 2012-10-04 12:31:23 +0000 @@ -262,8 +262,9 @@ def handle_removeClusterReq(req, body): def handle_shutdownServerReq(req, body): """x""" - if body.has_key('deathkey') and int(body['deathkey']) == deathkey: + if body.has_key('deathkey') and body['deathkey'] == deathkey: raise ShutdownException("Shutdown request received") + time.sleep(util.get_val(body, 'sleeptime', 0)) return make_rep(req, 'incorrect death key') No bundle (reason: useless for push emails).