Merge pull request #984 from petermattis/pmattis/comparator-iterate-upper-bound

Use user_comparator when comparing against iterate_upper_bound.
This commit is contained in:
Igor Canadi 2016-02-11 10:22:40 -08:00
commit 3dc3d1c144

View File

@ -275,7 +275,7 @@ void DBIter::FindNextUserEntryInternal(bool skipping) {
if (ParseKey(&ikey)) {
if (iterate_upper_bound_ != nullptr &&
ikey.user_key.compare(*iterate_upper_bound_) >= 0) {
user_comparator_->Compare(ikey.user_key, *iterate_upper_bound_) >= 0) {
break;
}