Commit 70a311c5 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Handle master's StopOperation packet in any state.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1762 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent bd9cc892
...@@ -28,6 +28,9 @@ class BaseMasterHandler(EventHandler): ...@@ -28,6 +28,9 @@ class BaseMasterHandler(EventHandler):
def connectionLost(self, conn, new_state): def connectionLost(self, conn, new_state):
raise PrimaryFailure('connection lost') raise PrimaryFailure('connection lost')
def stopOperation(self, conn):
raise OperationFailure('operation stopped')
def reelectPrimary(self, conn): def reelectPrimary(self, conn):
raise PrimaryFailure('re-election occurs') raise PrimaryFailure('re-election occurs')
......
...@@ -25,9 +25,6 @@ from neo.exception import OperationFailure ...@@ -25,9 +25,6 @@ from neo.exception import OperationFailure
class MasterOperationHandler(BaseMasterHandler): class MasterOperationHandler(BaseMasterHandler):
""" This handler is used for the primary master """ """ This handler is used for the primary master """
def stopOperation(self, conn):
raise OperationFailure('operation stopped')
def answerLastIDs(self, conn, loid, ltid, lptid): def answerLastIDs(self, conn, loid, ltid, lptid):
self.app.replicator.setCriticalTID(conn.getUUID(), ltid) self.app.replicator.setCriticalTID(conn.getUUID(), ltid)
......
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