Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](load) fix priority queue order in memtable memory limiter (#41278)
## Proposed changes #41018 used priority queue when selecting memtables to flush. But the compare function is wrong and causing the order to be the opposite. > Note that the Compare parameter is defined such that it returns true if its first argument comes before its second argument in a weak ordering. But because the priority queue outputs largest elements first, the elements that "come before" are actually output last. That is, the front of the queue contains the "last" element according to the weak ordering imposed by Compare. This PR fixes the compare function to make larger memtables come front.
- Loading branch information