From f29a326ca0712fb8cc03404c616fe262ef282456 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Tue, 24 Feb 2026 01:50:44 +0000 Subject: [PATCH] Fix QueryDigestTopK heap comparator semantics --- lib/Query_Processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Query_Processor.cpp b/lib/Query_Processor.cpp index 2d326fbbf..d11970ed8 100644 --- a/lib/Query_Processor.cpp +++ b/lib/Query_Processor.cpp @@ -1230,7 +1230,7 @@ query_digest_topk_result_t Query_Processor::get_query_digests_topk( * efficiently evict the worst candidate when the heap is full. */ const auto worse = [](const query_digest_topk_candidate_t& lhs, const query_digest_topk_candidate_t& rhs) -> bool { - return query_digest_candidate_better(rhs, lhs); + return query_digest_candidate_better(lhs, rhs); }; std::priority_queue< query_digest_topk_candidate_t,