diff --git a/db/version_set.cc b/db/version_set.cc index 32de4f637a..e839c7303e 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -1280,11 +1280,9 @@ void LevelIterator::Seek(const Slice& target) { ts_sz); if (prefix_extractor_->InDomain(target_user_key_without_ts) && (!prefix_extractor_->InDomain(next_file_first_user_key_without_ts) || - user_comparator_.CompareWithoutTimestamp( - prefix_extractor_->Transform(target_user_key_without_ts), false, - prefix_extractor_->Transform( - next_file_first_user_key_without_ts), - false) != 0)) { + prefix_extractor_->Transform(target_user_key_without_ts) + .compare(prefix_extractor_->Transform( + next_file_first_user_key_without_ts)) != 0)) { // SkipEmptyFileForward() will not advance to next file when this flag // is set for reason detailed below. //