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 fallthrough logic for cgroup version detection #2851

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Conversation

eldering
Copy link
Member

Only one of cgroup V1 or V2 can be enabled at a time, so it doesn't make sense to have fallthrough behaviour from V2 to V1. Instead of adding an exit 0 at the end of the V2 case, add an else so that it is clearer that these are two mutually exclusive cases.

Fixes a0728be

Only one of cgroup V1 or V2 can be enabled at a time, so it doesn't
make sense to have fallthrough behaviour from V2 to V1.
Instead of adding an `exit 0` at the end of the V2 case, add an
`else` so that it is clearer that these are two mutually exclusive
cases.

Fixes a0728be
@eldering eldering enabled auto-merge November 24, 2024 08:40
@eldering eldering added this pull request to the merge queue Nov 24, 2024
Merged via the queue into main with commit cbadb70 Nov 24, 2024
34 checks passed
@eldering eldering deleted the fix-cgroupv2-check branch November 24, 2024 09:04
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.

3 participants