-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
release/v2.2007 Fix integer overflow on 32-bit architectures #1558
release/v2.2007 Fix integer overflow on 32-bit architectures #1558
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issues found.
@@ -47,7 +47,7 @@ import ( | |||
|
|||
// maxVlogFileSize is the maximum size of the vlog file which can be created. Vlog Offset is of | |||
// uint32, so limiting at max uint32. | |||
var maxVlogFileSize = math.MaxUint32 | |||
var maxVlogFileSize uint32 = math.MaxUint32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid global variables to improve readability and reduce complexity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global variable not introduced in this PR, and is still a global variable in master branch. I would keep it as is here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can ignore the comment by codelingo.
Thanks @jsoriano |
@jsoriano Thanks! You helped me so much. |
Hey @g1ibby , we don't have the next patch for v2.2007 planned. Is it possible for you to use the latest release? v3.2011.1? |
okay, thank you for the information. I'll be thinking about using v3.* |
Similar to #1541, but for v2.2007 branch.
This change is