At http://bzr.arbash-meinel.com/branches/bzr/1.8-dev/btree_buffer

------------------------------------------------------------
revno: 3774
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: John Arbash Meinel <[EMAIL PROTECTED]>
branch nick: btree_buffer
timestamp: Tue 2008-10-14 15:19:53 -0500
message:
  Use the new LRUCache.keys() member rather than peeking behind the scenes.
=== modified file 'bzrlib/btree_index.py'
--- a/bzrlib/btree_index.py     2008-10-14 19:31:34 +0000
+++ b/bzrlib/btree_index.py     2008-10-14 20:19:53 +0000
@@ -688,9 +688,8 @@
 
     def _get_cached_nodes(self):
         """Determine what nodes we already have cached."""
-        # XXX: Update the LRUCache interface to have a .keys() attribute
-        cached_nodes = set(self._internal_node_cache._cache.keys())
-        cached_nodes.update(self._leaf_node_cache._cache.keys())
+        cached_nodes = set(self._internal_node_cache.keys())
+        cached_nodes.update(self._leaf_node_cache.keys())
         if self._root_node is not None:
             cached_nodes.add(0)
         return cached_nodes

-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to