Commit d5a22e81 authored by Vincent Pelletier's avatar Vincent Pelletier

Add documentation.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2225 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 678657da
...@@ -77,6 +77,42 @@ class Replicator(object): ...@@ -77,6 +77,42 @@ class Replicator(object):
namely, a list of serials. This is also done part by part, and namely, a list of serials. This is also done part by part, and
I ask only non-existing data. """ I ask only non-existing data. """
# new_partition_dict
# outdated partitions for which no critical tid was asked to primary
# master yet
# critical_tid_dict
# outdated partitions for which a critical tid was asked to primary
# master, but not answered so far
# XXX: could probably be made a list/set rather than a dict
# partition_dict
# outdated partitions (with or without a critical tid - if without, it
# was asked to primary master)
# current_partition
# partition being currently synchronised
# XXX: accessed (r) directly by ReplicationHandler
# current_connection
# connection to a storage node we are replicating from
# XXX: accessed (r) directory by ReplicationHandler
# waiting_for_unfinished_tids
# unfinished_tid_list has been asked to primary master node, but it
# didn't answer yet.
# unfinished_tid_list
# The list of unfinished TIDs known by master node.
# oid_list
# List of OIDs to replicate. Doesn't contains currently-replicated
# object.
# XXX: not defined here
# XXX: accessed (r/w) directly by ReplicationHandler
# next_oid
# Next OID to ask when oid_list is empty.
# XXX: not defined here
# XXX: accessed (r/w) directly by ReplicationHandler
# replication_done
# False if we know there is something to replicate.
# True when current_partition is replicated, or we don't know yet if
# there is something to replicate
# XXX: accessed (w) directly by ReplicationHandler
def __init__(self, app): def __init__(self, app):
self.app = app self.app = app
......
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