This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix merge iterator duplicates issue (#1157)
Fixes: hypermodeinc/badger#1153 The tree-based merge iterator would not skip duplicate keys. This commit fixes it. If merge iterator consists of 3 iterators ``` it1 = [1, 1, 1] it2 = [1, 1, 1, 1, 2] it3 = [1, 1, 1, 1, 2] ``` The result should be ``` [1, 2] ```
- Loading branch information
Ibrahim Jarif
authored
Dec 18, 2019
1 parent
5585fd6
commit 4c9a082
Showing
2 changed files
with
99 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters