Commit 61d37895 authored by Julien Muchembled's avatar Julien Muchembled

Some minor cleanup

parent 49edad32
......@@ -300,9 +300,7 @@ class TestRunner(BenchmarkRunner):
def main(args=None):
runner = TestRunner()
if not runner.was_successful():
return sys.exit(not runner.was_successful())
if __name__ == "__main__":
......@@ -36,7 +36,7 @@ class BaseMasterHandler(EventHandler):
raise PrimaryFailure('re-election occurs')
def notifyClusterInformation(self, conn, state):
neo.lib.logging.warning('ignoring notify cluster information in %s' %
neo.lib.logging.warning('ignoring notify cluster information in %s',
def notifyLastOID(self, conn, oid):
......@@ -49,7 +49,7 @@ class BaseMasterHandler(EventHandler):
for node_type, addr, uuid, state in node_list:
if uuid ==
# This is me, do what the master tell me"I was told I'm %s" %(state))"I was told I'm %s", state)
if state in (NodeStates.DOWN, NodeStates.TEMPORARILY_DOWN,
erase = state == NodeStates.DOWN
......@@ -38,9 +38,8 @@ class VerificationHandler(BaseMasterHandler):
conn.answer(Packets.AnswerLastIDs(oid, tid,
def askPartitionTable(self, conn):
ptid =
row_list =
conn.answer(Packets.AnswerPartitionTable(ptid, row_list))
pt =
conn.answer(Packets.AnswerPartitionTable(pt.getID(), pt.getRowList()))
def notifyPartitionChanges(self, conn, ptid, cell_list):
"""This is very similar to Send Partition Table, except that
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment