Skip to content

Commit

Permalink
Merge pull request #4 from zuoyebang/dev
Browse files Browse the repository at this point in the history
fix merging iter bug
  • Loading branch information
xingfu89 authored Mar 13, 2024
2 parents 9ae3a82 + daf43ad commit 9460fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9460fb8

Please sign in to comment.