Ensure multi-item chunks in couch_btree:chunkify/1

If the last element of a chunk has a huge reduction it was possible to
return a btree node that had a single key. This prevents the edge case
by forcing it into the previous chunk. Without this we can end up with a
case where a path in the tree can extend for many levels with only a
single key in each node.

1 file changed
tree: fbdbf36bc3cf0a23abb77ceaf47fedada3362489
  1. .gitignore
  2. .travis.yml
  4. include/
  5. priv/
  6. rebar.config.script
  7. src/
  8. test/