From 96f10ffff8e2820c9523f8af71ac56996b6e31a4 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 26 Nov 2016 22:57:17 +0100 Subject: Improve two comments. --- tools/merge_fetch.py | 8 ++++++-- 1 file 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: -- cgit v1.1