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):
result = child._set(key, value, ifunset)
grew = result[0]
if child.__class__ is self.__class__:
max_size = self.max_btree_size
else:
max_size = self.max_bucket_size
if grew and child.size > max_size:
self._grow(child, index)
if grew:
if child.__class__ is self.__class__:
max_size = self.max_btree_size
else:
max_size = self.max_bucket_size
if child.size > max_size:
self._grow(child, index)
elif (grew is not None and
child.__class__ is self._bucket_type 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