]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
dirnode.py: when doing deep-traverse, walk each directory in alphabetical order,...
authorBrian Warner <warner@allmydata.com>
Fri, 13 Mar 2009 06:50:46 +0000 (23:50 -0700)
committerBrian Warner <warner@allmydata.com>
Fri, 13 Mar 2009 06:50:46 +0000 (23:50 -0700)
src/allmydata/dirnode.py

index 27c840d9863654eb2fc46fc46bea5ca97deb7c1e..0aee386bb633814828402083ac46e6f57f91d56b 100644 (file)
@@ -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):