Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wal delete sort method #12176

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

HeimingZ
Copy link
Contributor

Because the disk usage of wal nodes may change when comparing their delete priority, which violates comparison method's general contract. So, I cache the disk usage in a map and use the values in the map to sort wal nodes.

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HTHou HTHou merged commit 797aa49 into apache:master Mar 15, 2024
36 checks passed
@HeimingZ HeimingZ deleted the fix_wal_delete_sort_method branch March 15, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants