Commit f3d2b3a3 authored by Vincent Pelletier's avatar Vincent Pelletier

Update handler name in docstring.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2204 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent eb18417e
...@@ -112,7 +112,7 @@ class Replicator(object): ...@@ -112,7 +112,7 @@ class Replicator(object):
return len(self.partition_dict) or len(self.new_partition_dict) return len(self.partition_dict) or len(self.new_partition_dict)
def setCriticalTID(self, uuid, tid): def setCriticalTID(self, uuid, tid):
"""This is a callback from OperationEventHandler.""" """This is a callback from MasterOperationHandler."""
try: try:
partition_list = self.critical_tid_dict[uuid] partition_list = self.critical_tid_dict[uuid]
logging.debug('setting critical TID %s to %s', dump(tid), logging.debug('setting critical TID %s to %s', dump(tid),
...@@ -133,7 +133,7 @@ class Replicator(object): ...@@ -133,7 +133,7 @@ class Replicator(object):
self.new_partition_dict = {} self.new_partition_dict = {}
def setUnfinishedTIDList(self, tid_list): def setUnfinishedTIDList(self, tid_list):
"""This is a callback from OperationEventHandler.""" """This is a callback from MasterOperationHandler."""
logging.debug('setting unfinished TIDs %s', logging.debug('setting unfinished TIDs %s',
','.join([dump(tid) for tid in tid_list])) ','.join([dump(tid) for tid in tid_list]))
self.waiting_for_unfinished_tids = False self.waiting_for_unfinished_tids = False
...@@ -236,7 +236,7 @@ class Replicator(object): ...@@ -236,7 +236,7 @@ class Replicator(object):
self._startReplication() self._startReplication()
def removePartition(self, rid): def removePartition(self, rid):
"""This is a callback from OperationEventHandler.""" """This is a callback from MasterOperationHandler."""
# TODO: remove try..except: pass # TODO: remove try..except: pass
try: try:
self.partition_dict.pop(rid) self.partition_dict.pop(rid)
...@@ -249,7 +249,7 @@ class Replicator(object): ...@@ -249,7 +249,7 @@ class Replicator(object):
pass pass
def addPartition(self, rid): def addPartition(self, rid):
"""This is a callback from OperationEventHandler.""" """This is a callback from MasterOperationHandler."""
if not self.partition_dict.has_key(rid) \ if not self.partition_dict.has_key(rid) \
and not self.new_partition_dict.has_key(rid): and not self.new_partition_dict.has_key(rid):
self.new_partition_dict[rid] = Partition(rid) self.new_partition_dict[rid] = Partition(rid)
......
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