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: replace string comparison with 64 bit int #2062

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

Revolyssup
Copy link
Contributor

@Revolyssup Revolyssup commented Nov 21, 2023

Type of change:

fixes #2060
The string comparison in go is lexicographically per unicode point therefore "9" > "10".
So instead the variables should be type converted into int before comparison

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Signed-off-by: Ashish Tiwari <ashishjaitiwari15112000@gmail.com>
@Revolyssup Revolyssup added this to the 1.8.0 milestone Nov 21, 2023
@Revolyssup Revolyssup merged commit e1a1b95 into apache:master Nov 22, 2023
79 checks passed
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.

bug: ResourceVersion comparison caused cr not synced
4 participants