diff --git a/db/db_impl.cc b/db/db_impl.cc index 9cb09d719..16622758f 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -631,7 +631,7 @@ bool CompareCandidateFile(const rocksdb::DBImpl::CandidateFileInfo& first, } else if (first.file_name < second.file_name) { return false; } else { - return (first.path_id > first.path_id); + return (first.path_id > second.path_id); } } }; // namespace