From 239aaf2fc0fddadaa4e4130592d9c581f196d98d Mon Sep 17 00:00:00 2001 From: Peter Mattis Date: Thu, 11 Feb 2016 08:26:25 -0500 Subject: [PATCH] Use user_comparator when comparing against iterate_upper_bound. Fixes #983. --- db/db_iter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_iter.cc b/db/db_iter.cc index a0a0529a7..afffc4dcc 100644 --- a/db/db_iter.cc +++ b/db/db_iter.cc @@ -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; } -- GitLab