diff --git a/db.go b/db.go index 50944e3..198e155 100644 --- a/db.go +++ b/db.go @@ -398,7 +398,7 @@ func finishInitializingIter(d *DB, buf *iterAlloc) *Iterator { } if numMergingLevels > cap(mlevels) { - mlevels = make([]mergingIterLevel, numMergingLevels) + mlevels = make([]mergingIterLevel, 0, numMergingLevels) } if batch != nil {