Repository navigation
allow for link-based session locks on desktop - #5668
Conversation
|
|
||
| // default values for static members | ||
| FileLock::LockType FileLock::s_defaultType(FileLock::LOCKTYPE_LINKBASED); | ||
| FileLock::LockType FileLock::s_defaultType(kLockTypeDefaultEnum); |
There was a problem hiding this comment.
If I'm reading this correctly, it not only makes link based locks possible, it also switches to link based locks by default on MacOS and Linux desktops. Is that intentional? (IIRC we don't have known issues with advisory locks there)
There was a problem hiding this comment.
That's a good point -- we don't want to change the default here; just make it possible to respect the user-set lock for session locks. I'll fix this.
d293581 to
648acec
Compare
|
Okay, PR now only makes the small change of allowing desktop to use the "default" lock type, meaning the link-based locks on Ubuntu + macOS desktop. (Windows will still use advisory locks by default.) |
|
Won't that still change the lock type default on those operating systems? rstudio/src/cpp/core/file_lock/FileLock.cpp Line 212 in e9adaf7 |
|
Sorry about that! I think I've got the right implementation wired in now. |
|
LGTM! |
Closes #3521.