Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #30576 [Cache] fix LockRegistry (nicolas-grekas)
This PR was merged into the 4.2 branch. Discussion ---------- [Cache] fix LockRegistry | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - - Locking doesn't work right now, because of this missing return statement. I can't provide a useful test case, because this is effective only when race conditions happen... - Writing the value should happen within the boundaries of the lock. - The `final` keyword is really missing, there are zero reasons to extend this class, adding it asap will make it clear and will unlock progress on this class. - Lastly, a type-hint fix is shipped here also. Commits ------- f49df4a [Cache] fix LockRegistry
- Loading branch information
Showing
2 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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