Commit a9bb4f67 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 688c40e6
...@@ -20,8 +20,6 @@ from neo.lib.exception import StoppedOperation ...@@ -20,8 +20,6 @@ from neo.lib.exception import StoppedOperation
from neo.lib.handler import EventHandler from neo.lib.handler import EventHandler
from neo.lib.protocol import Packets from neo.lib.protocol import Packets
X = 0
class MasterHandler(EventHandler): class MasterHandler(EventHandler):
"""This class implements a generic part of the event handlers.""" """This class implements a generic part of the event handlers."""
...@@ -39,17 +37,9 @@ class MasterHandler(EventHandler): ...@@ -39,17 +37,9 @@ class MasterHandler(EventHandler):
def askRecovery(self, conn): def askRecovery(self, conn):
app = self.app app = self.app
backup_tid = app.backup_tid
pt_backup_tid = None
if backup_tid:
pt_backup_tid = app.pt.getBackupTid()
if X:
print 'MASTER askRecovery .backup_tid: %r pt.getBackupTid(): %r' % (
backup_tid, pt_backup_tid)
conn.answer(Packets.AnswerRecovery( conn.answer(Packets.AnswerRecovery(
app.pt.getID(), app.pt.getID(),
#app.backup_tid and app.pt.getBackupTid(), app.backup_tid and app.pt.getBackupTid(),
backup_tid and pt_backup_tid,
app.truncate_tid)) app.truncate_tid))
def askLastIDs(self, conn): def askLastIDs(self, conn):
......
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