Commit f341ec3b authored by Grégory Wisniewski's avatar Grégory Wisniewski

Move two packet handler methods to the apropriate handler. Those packets are

never sent by the client.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1353 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b6594445
......@@ -100,12 +100,3 @@ class BaseServiceHandler(MasterHandler):
# clean node related data in specialized handlers
self.nodeLost(conn, node)
def askLastIDs(self, conn, packet):
app = self.app
conn.answer(protocol.answerLastIDs(app.loid, app.ltid, app.pt.getID()), packet.getId())
def askUnfinishedTransactions(self, conn, packet):
app = self.app
p = protocol.answerUnfinishedTransactions(app.finishing_transaction_dict.keys())
conn.answer(p, packet.getId())
......@@ -42,6 +42,15 @@ class StorageServiceHandler(BaseServiceHandler):
# partition must not oudated to allows a cluster restart.
self.app.outdateAndBroadcastPartition()
def askLastIDs(self, conn, packet):
app = self.app
conn.answer(protocol.answerLastIDs(app.loid, app.ltid, app.pt.getID()), packet.getId())
def askUnfinishedTransactions(self, conn, packet):
app = self.app
p = protocol.answerUnfinishedTransactions(app.finishing_transaction_dict.keys())
conn.answer(p, packet.getId())
def notifyInformationLocked(self, conn, packet, tid):
uuid = conn.getUUID()
app = self.app
......
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