From: Brian Warner Date: Tue, 7 Oct 2008 20:19:29 +0000 (-0700) Subject: dirnode.build_manifest: include node.list in the limiter, that's the most important... X-Git-Url: https://git.rkrishnan.org/(%5B%5E?a=commitdiff_plain;h=9d4749d546275326b41d653767edb0f203df9907;p=tahoe-lafs%2Ftahoe-lafs.git dirnode.build_manifest: include node.list in the limiter, that's the most important thing to slow down --- diff --git a/src/allmydata/dirnode.py b/src/allmydata/dirnode.py index 3cc14167..c9366941 100644 --- a/src/allmydata/dirnode.py +++ b/src/allmydata/dirnode.py @@ -480,7 +480,7 @@ class NewDirectoryNode: def _deep_traverse_dirnode(self, node, path, walker, found, limiter): # process this directory, then walk its children d = limiter.add(walker.add_node, node, path) - d.addCallback(lambda ignored: node.list()) + d.addCallback(lambda ignored: limiter.add(node.list)) d.addCallback(self._deep_traverse_dirnode_children, node, path, walker, found, limiter) return d