Commit ded9e2b6 authored by Jim Fulton's avatar Jim Fulton

don't look at max size unless we grew, since some tests don't set them

up.
parent 97dd1abb
...@@ -866,12 +866,13 @@ class _Tree(_Base): ...@@ -866,12 +866,13 @@ class _Tree(_Base):
result = child._set(key, value, ifunset) result = child._set(key, value, ifunset)
grew = result[0] grew = result[0]
if child.__class__ is self.__class__: if grew:
max_size = self.max_btree_size if child.__class__ is self.__class__:
else: max_size = self.max_btree_size
max_size = self.max_bucket_size else:
if grew and child.size > max_size: max_size = self.max_bucket_size
self._grow(child, index) if child.size > max_size:
self._grow(child, index)
elif (grew is not None and elif (grew is not None and
child.__class__ is self._bucket_type and child.__class__ is self._bucket_type and
len(data) == 1 and len(data) == 1 and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment