Skip to content

Conversation

@tamilmani1989
Copy link
Member

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:

@tamilmani1989 tamilmani1989 force-pushed the tamanoha/lockfileopen branch 2 times, most recently from f6f9a71 to f8fdcf4 Compare September 30, 2021 23:29
@tamilmani1989 tamilmani1989 changed the title No need to remove lock files on reboot Remove lock files on reboot not needed Sep 30, 2021
@tamilmani1989 tamilmani1989 force-pushed the tamanoha/lockfileopen branch 2 times, most recently from 04f52ec to 28214b0 Compare September 30, 2021 23:54

var lockFile *os.File
var err error
lockPerm := os.FileMode(0o664) + os.FileMode(os.ModeExclusive)
Copy link
Contributor

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?

Copy link
Member Author

@tamilmani1989 tamilmani1989 Oct 1, 2021

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.

Copy link
Collaborator

@rbtr rbtr Oct 1, 2021

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

Copy link
Member Author

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

Copy link
Contributor

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!

@jsturtevant
Copy link
Contributor

xref: #774 this should resolve that issue partially

@tamilmani1989
Copy link
Member Author

xref: #774 this should resolve that issue partially

not sure if this fixes that issue

@tamilmani1989 tamilmani1989 force-pushed the tamanoha/lockfileopen branch from 28214b0 to c5b778a Compare October 1, 2021 17:55
@ashvindeodhar
Copy link
Member

lgtm, you can merge once you get approval from Evan for filemode changes

ashvindeodhar
ashvindeodhar previously approved these changes Oct 1, 2021
@tamilmani1989 tamilmani1989 merged commit 3510ac4 into master Oct 1, 2021
@tamilmani1989 tamilmani1989 deleted the tamanoha/lockfileopen branch October 1, 2021 18:24
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.

5 participants