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).
| Thread |
|---|
| • bzr push into mysql-5.5-cluster-7.2 branch (Dyre.Tjeldvoll:4085 to 4086) | Dyre Tjeldvoll | 4 Oct |