From 9d4749d546275326b41d653767edb0f203df9907 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Tue, 7 Oct 2008 13:19:29 -0700
Subject: [PATCH] dirnode.build_manifest: include node.list in the limiter,
 that's the most important thing to slow down

---
 src/allmydata/dirnode.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.45.2