Commit e779278d authored by Jim Fulton's avatar Jim Fulton

sync split rule with C code.

parent 0439c55a
......@@ -885,7 +885,7 @@ class _Tree(_Base):
self._p_changed = True
new_child = child._split()
self._data.insert(index+1, _TreeItem(new_child.minKey(), new_child))
if len(self._data) > self.max_btree_size * 2:
if len(self._data) >= self.max_btree_size * 2:
self._split_root()
def _split_root(self):
......
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