summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-11-26 22:57:17 +0100
committerLinus Nordberg <linus@nordu.net>2016-11-26 22:57:17 +0100
commit96f10ffff8e2820c9523f8af71ac56996b6e31a4 (patch)
tree691e755ace4a31d6e8b99b28c8174e2343e6f8ff /tools
parent8b96f7c91591ac0c667538a9c9316f28891ccc72 (diff)
Improve two comments.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/merge_fetch.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/merge_fetch.py b/tools/merge_fetch.py
index be9edce..a31143e 100755
--- a/tools/merge_fetch.py
+++ b/tools/merge_fetch.py
@@ -175,8 +175,12 @@ def merge_fetch_parallel(args, config, localconfig):
procs[name] = newworker(name, [args, localconfig, storagenode])
currentsizefilecontent = ""
- logorder = get_logorder(logorderfile) # List of hashes in log, hexencoded.
- entries_in_log = set(logorder) # Set of hashes in log, binary.
+ # Entries in log, kept in both a set and a list.
+ logorder = get_logorder(logorderfile) # Hashes are hexencoded.
+ entries_in_log = set(logorder) # Hashes are binary.
+ # Entries to fetch, kept in both a set and a dict. The dict is
+ # keyed on hashes (binary) and contains randomised lists of nodes
+ # to fetch from.
fetch_set = set()
fetch_dict = {}
while procs: