-
Notifications
You must be signed in to change notification settings - Fork 260
Remove lock files on reboot not needed #1041
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
Conversation
b7d21a2 to
c06583b
Compare
f6f9a71 to
f8fdcf4
Compare
04f52ec to
28214b0
Compare
|
|
||
| var lockFile *os.File | ||
| var err error | ||
| lockPerm := os.FileMode(0o664) + os.FileMode(os.ModeExclusive) |
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.
was this value 0o664 valid?
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.
i corrected it to 0664 which is valid.
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.
@jsturtevant 0o644 is a legal (and unambiguous) representation of 0644, where the little o indicates octal
so
@tamilmani1989 you uncorrected it, 0o644 is less ambiguous and therefore preferred
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.
@rbtr oops. thanks for letting me know. i will revert this back
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.
@rbtr thanks for the explanation!
|
xref: #774 this should resolve that issue partially |
not sure if this fixes that issue |
28214b0 to
c5b778a
Compare
|
lgtm, you can merge once you get approval from Evan for filemode changes |
c5b778a to
77e8ac9
Compare
Reason for Change:
No need to remove lock files on reboot as like state files. This call causing unnecessary open to lock file.
Issue Fixed:
Requirements:
Notes: