Commit a9cf6f7f authored by Vincent Pelletier's avatar Vincent Pelletier

Remove unused variables.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2403 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 28031cee
...@@ -182,12 +182,9 @@ class ReplicationHandler(EventHandler): ...@@ -182,12 +182,9 @@ class ReplicationHandler(EventHandler):
@checkConnectionIsReplicatorConnection @checkConnectionIsReplicatorConnection
def answerCheckTIDRange(self, conn, min_tid, length, count, tid_checksum, def answerCheckTIDRange(self, conn, min_tid, length, count, tid_checksum,
max_tid): max_tid):
app = self.app replicator = self.app.replicator
replicator = app.replicator
our = replicator.getTIDCheckResult(min_tid, length) our = replicator.getTIDCheckResult(min_tid, length)
his = (count, tid_checksum, max_tid) his = (count, tid_checksum, max_tid)
our_count = our[0]
our_max_tid = our[2]
p = None p = None
if our != his: if our != his:
# Something is different... # Something is different...
...@@ -204,7 +201,7 @@ class ReplicationHandler(EventHandler): ...@@ -204,7 +201,7 @@ class ReplicationHandler(EventHandler):
count + 1)) count + 1))
if p is None: if p is None:
if count == length and \ if count == length and \
max_tid < app.replicator.getCurrentCriticalTID(): max_tid < replicator.getCurrentCriticalTID():
# Go on with next chunk # Go on with next chunk
p = self._doAskCheckTIDRange(add64(max_tid, 1)) p = self._doAskCheckTIDRange(add64(max_tid, 1))
else: else:
...@@ -216,13 +213,9 @@ class ReplicationHandler(EventHandler): ...@@ -216,13 +213,9 @@ class ReplicationHandler(EventHandler):
@checkConnectionIsReplicatorConnection @checkConnectionIsReplicatorConnection
def answerCheckSerialRange(self, conn, min_oid, min_serial, length, count, def answerCheckSerialRange(self, conn, min_oid, min_serial, length, count,
oid_checksum, max_oid, serial_checksum, max_serial): oid_checksum, max_oid, serial_checksum, max_serial):
app = self.app replicator = self.app.replicator
replicator = app.replicator
our = replicator.getSerialCheckResult(min_oid, min_serial, length) our = replicator.getSerialCheckResult(min_oid, min_serial, length)
his = (count, oid_checksum, max_oid, serial_checksum, max_serial) his = (count, oid_checksum, max_oid, serial_checksum, max_serial)
our_count = our[0]
our_max_oid = our[2]
our_max_serial = our[4]
p = None p = None
if our != his: if our != his:
# Something is different... # Something is different...
......
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