Commit 761de356 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a missing ptid argument.

git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@56 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4e62014d
...@@ -145,13 +145,13 @@ class EventHandler(object): ...@@ -145,13 +145,13 @@ class EventHandler(object):
def handleAskPartitionTable(self, conn, packet, offset_list): def handleAskPartitionTable(self, conn, packet, offset_list):
self.handleUnexpectedPacket(conn, packet) self.handleUnexpectedPacket(conn, packet)
def handleAnswerPartitionTable(self, conn, packet, row_list): def handleAnswerPartitionTable(self, conn, packet, ptid, row_list):
self.handleUnexpectedPacket(conn, packet) self.handleUnexpectedPacket(conn, packet)
def handleSendPartitionTable(self, conn, packet, row_list): def handleSendPartitionTable(self, conn, packet, ptid, row_list):
self.handleUnexpectedPacket(conn, packet) self.handleUnexpectedPacket(conn, packet)
def handleNotifyPartitionChanges(self, conn, packet, cell_list): def handleNotifyPartitionChanges(self, conn, packet, ptid, cell_list):
self.handleUnexpectedPacket(conn, packet) self.handleUnexpectedPacket(conn, packet)
def handleStartOperation(self, conn, packet): def handleStartOperation(self, conn, packet):
......
...@@ -29,7 +29,7 @@ class MasterEventHandler(EventHandler): ...@@ -29,7 +29,7 @@ class MasterEventHandler(EventHandler):
logging.info('ignoring Answer Last IDs') logging.info('ignoring Answer Last IDs')
pass pass
def handleAnswerPartitionTable(self, conn, packet, cell_list): def handleAnswerPartitionTable(self, conn, packet, ptid, cell_list):
logging.info('ignoring Answer Partition Table') logging.info('ignoring Answer Partition Table')
pass pass
......
...@@ -301,7 +301,7 @@ class RecoveryEventHandler(MasterEventHandler): ...@@ -301,7 +301,7 @@ class RecoveryEventHandler(MasterEventHandler):
elif app.lptid == lptid and app.target_uuid is None: elif app.lptid == lptid and app.target_uuid is None:
app.target_uuid = uuid app.target_uuid = uuid
def handleAnswerPartitionTable(self, conn, packet, cell_list): def handleAnswerPartitionTable(self, conn, packet, ptid, cell_list):
uuid = conn.getUUID() uuid = conn.getUUID()
if uuid is None: if uuid is None:
self.handleUnexpectedPacket(conn, packet) self.handleUnexpectedPacket(conn, packet)
......
...@@ -310,7 +310,7 @@ class VerificationEventHandler(MasterEventHandler): ...@@ -310,7 +310,7 @@ class VerificationEventHandler(MasterEventHandler):
logging.critical('got later information in verification') logging.critical('got later information in verification')
raise VerificationFailure raise VerificationFailure
def handleAnswerPartitionTable(self, conn, packet, cell_list): def handleAnswerPartitionTable(self, conn, packet, ptid, cell_list):
# Ignore this packet. # Ignore this packet.
pass pass
......
...@@ -206,10 +206,10 @@ class BootstrapEventHandler(StorageEventHandler): ...@@ -206,10 +206,10 @@ class BootstrapEventHandler(StorageEventHandler):
def handleAskPartitionTable(self, conn, packet, offset_list): def handleAskPartitionTable(self, conn, packet, offset_list):
pass pass
def handleSendPartitionTable(self, conn, packet, row_list): def handleSendPartitionTable(self, conn, packet, ptid, row_list):
pass pass
def handleNotifyPartitionChanges(self, conn, packet, cell_list): def handleNotifyPartitionChanges(self, conn, packet, ptid, cell_list):
pass pass
def handleStartOperation(self, conn, packet): def handleStartOperation(self, conn, packet):
......
...@@ -148,10 +148,10 @@ class StorageEventHandler(EventHandler): ...@@ -148,10 +148,10 @@ class StorageEventHandler(EventHandler):
def handleAskPartitionTable(self, conn, packet, offset_list): def handleAskPartitionTable(self, conn, packet, offset_list):
raise NotImplementedError('this method must be overridden') raise NotImplementedError('this method must be overridden')
def handleSendPartitionTable(self, conn, packet, row_list): def handleSendPartitionTable(self, conn, packet, ptid, row_list):
raise NotImplementedError('this method must be overridden') raise NotImplementedError('this method must be overridden')
def handleNotifyPartitionChanges(self, conn, packet, cell_list): def handleNotifyPartitionChanges(self, conn, packet, ptid, cell_list):
raise NotImplementedError('this method must be overridden') raise NotImplementedError('this method must be overridden')
def handleStartOperation(self, conn, packet): def handleStartOperation(self, conn, packet):
......
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