Repository navigation
Fixing compilation by removing flock() when compiling on Solaris - #11327
Merged
Merged
Conversation
Member
|
@steffen-moser didn't you say that maybe we can achieve our purpose with an fcntl? |
Contributor
Author
|
Yes, the statement which turned me away from doing this, has been already given in https://github.com/redis/redis/blob/unstable/src/cluster.c#L498-L500 where the lock is set up (except for Solaris!): So what my PR is doing, is basically just a symmetrical behavior. As we don't set up the lock in Solaris, we don't have to unlock anything. |
oranagra
approved these changes
Sep 27, 2022
Merged
oranagra
pushed a commit
that referenced
this pull request
Dec 12, 2022
) SunOS/Solaris and its relatives don't support the flock() function. While "redis" has been excluding setting up the lock using flock() on the cluster configuration file when compiling under Solaris, it was still using flock() in the unlock call while shutting down. This pull request eliminates the flock() call also in the unlocking stage for Oracle Solaris and its relatives. Fix compilation regression from #10912 (cherry picked from commit 6aab4cb)
madolson
pushed a commit
to madolson/redis
that referenced
this pull request
Apr 19, 2023
…is#11327) SunOS/Solaris and its relatives don't support the flock() function. While "redis" has been excluding setting up the lock using flock() on the cluster configuration file when compiling under Solaris, it was still using flock() in the unlock call while shutting down. This pull request eliminates the flock() call also in the unlocking stage for Oracle Solaris and its relatives. Fix compilation regression from redis#10912
enjoy-binbin
pushed a commit
to enjoy-binbin/redis
that referenced
this pull request
Jul 31, 2023
…is#11327) SunOS/Solaris and its relatives don't support the flock() function. While "redis" has been excluding setting up the lock using flock() on the cluster configuration file when compiling under Solaris, it was still using flock() in the unlock call while shutting down. This pull request eliminates the flock() call also in the unlocking stage for Oracle Solaris and its relatives. Fix compilation regression from redis#10912
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SunOS/Solaris and its relatives don't support the flock() function. While "redis" has been excluding setting up the lock using flock() on the cluster configuration file in https://github.com/redis/redis/blob/unstable/src/cluster.c#L502 when compiling under Solaris, it was still using flock() in the unlock call while shutting down.
This pull request eliminates the flock() call also in the unlocking stage for Oracle Solaris and its relatives.
Fix compilation regression from #10912