Open sam-ulrich1 opened 2 years ago
@chrisgilmerproj I completed my modifications. Are you interested in a PR?
Yes please!
Great to hear! I'll get it over by the end of the day
So I private forked it and made the mods here https://github.com/Gage-Technologies/safelock
I'm going to personally fork it and copy the changes so I can PR easily
@chrisgilmerproj not sure if you saw it but here's the pr https://github.com/deptofdefense/safelock/pull/63 No worries if you're just busy!
@chrisgilmerproj I found a bug in the latest merge. The usage of newline for separation can have collisions with the little endian endcoded session ids. It's common enough that after about 4 million file locks I've found 50k deadlocks. I've traded out the separator for __::__
in our repo. I can send another PR soon if you'd like
No problem @sam-ulrich1 . Send a PR and I'll approve it.
@chrisgilmerproj https://github.com/deptofdefense/safelock/pull/72
Reviewed and merged!
I am looking at implementing a node and session aware version of this lib. Would you be interested in a PR instead?
Goal: In the case that a node is improperly terminated, deadlocks on the fs can be detected and automatically repaired at runtime.
Changes: