Commit 00f89a53 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Raise if a TransactionFinished packet contains a wrong TID.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1623 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c7deb039
......@@ -170,6 +170,7 @@ class PrimaryAnswersHandler(AnswerBaseHandler):
self.app.new_oid_list.reverse()
def answerTransactionFinished(self, conn, tid):
if tid == self.app.getTID():
self.app.setTransactionFinished()
if tid != self.app.getTID():
raise ProtocolError('Wrong TID, transaction not started')
self.app.setTransactionFinished()
......@@ -18,7 +18,7 @@
from ZODB.TimeStamp import TimeStamp
from neo.client.handlers import BaseHandler, AnswerBaseHandler
from neo.protocol import NodeTypes
from neo.protocol import NodeTypes, ProtocolError
class StorageEventHandler(BaseHandler):
......
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