-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DATAREDIS-1117 - Improve doLock method to atomic. #518
base: 2.7.x
Are you sure you want to change the base?
Conversation
Related tickets: DATAREDIS-1117.
@christophstrobl Hi! I need feedback. is this pr has problem? |
Thanks for your pull request. There's indeed a loophole where With locking, it makes sense to reduce the handling into a single place. Instead of modifying |
Related tickets: DATAREDIS-1117.
Related tickets: DATAREDIS-1117.
@mp911de Hi. I refactored the code based on your review. Thank you.
|
Original pull request spring-projects#518 Closes spring-projects#1686
Related tickets: DATAREDIS-1117.
doLock
method is not guarantee to acquire lock, so improved it.Improved
doLock
method is guarantee to acquire lock, sowasLocked
variable is unnecessary. I removed it.You have read the Spring Data contribution guidelines.
There is a ticket in the bug tracker for the project in our JIRA.
You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
You submit test cases (unit or integration tests) that back your changes.
You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).