From: Brian Warner Date: Fri, 13 Mar 2009 06:50:46 +0000 (-0700) Subject: dirnode.py: when doing deep-traverse, walk each directory in alphabetical order,... X-Git-Tag: allmydata-tahoe-1.4.0~58 X-Git-Url: https://git.rkrishnan.org/pf/content/en/(%5B%5E?a=commitdiff_plain;h=1a741fdb033fff74edc48c899c7d9d10479e847a;p=tahoe-lafs%2Ftahoe-lafs.git dirnode.py: when doing deep-traverse, walk each directory in alphabetical order, to make things like 'manifest' more predictable --- diff --git a/src/allmydata/dirnode.py b/src/allmydata/dirnode.py index 27c840d9..0aee386b 100644 --- a/src/allmydata/dirnode.py +++ b/src/allmydata/dirnode.py @@ -526,7 +526,7 @@ class NewDirectoryNode: # in the nodecache) seem to consume about 2000 bytes. dirkids = [] filekids = [] - for name, (child, metadata) in children.iteritems(): + for name, (child, metadata) in sorted(children.iteritems()): verifier = child.get_verify_cap() # allow LIT files (for which verifier==None) to be processed if (verifier is not None) and (verifier in found):