summaryrefslogtreecommitdiff
path: root/insert-remove-test
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-11 18:48:26 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-11 18:48:26 +1200
commit019dd40f03a7180102d414e2a74c2066c88ceec0 (patch)
tree3efebc60687d58eeb1a400e772be3b3764968926 /insert-remove-test
parentb6251eda38108afdcc02fc902809239d59010e7f (diff)
downloadlarch-019dd40f03a7180102d414e2a74c2066c88ceec0.tar.gz
Get rid of BTree.root_id and change BTree.root into a real attribute.
Diffstat (limited to 'insert-remove-test')
-rwxr-xr-xinsert-remove-test4
1 files changed, 2 insertions, 2 deletions
diff --git a/insert-remove-test b/insert-remove-test
index 19a5e86..08e7fd9 100755
--- a/insert-remove-test
+++ b/insert-remove-test
@@ -55,12 +55,12 @@ def assert_refcounts_are_one(tree):
if isinstance(node, btree.IndexNode):
for key, child_id in node.pairs():
helper(child_id)
- helper(tree.root_id)
+ helper(tree.root.id)
def do_insert(tree, key, value):
logging.debug('do_insert(%s)' % (repr(key)))
- if tree.root_id is not None:
+ if tree.root is not None:
assert_refcounts_are_one(tree)
tree.insert(key, value)
assert_refcounts_are_one(tree)