-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UaaTokenStore: Don't fall over when failing to expire oauth codes
MySQL does row-level locking, which means when we delete expired oauth codes in parallel we can sometimes hit a harmless deadlock (where the two delete updates execute across the rows in different order simultaneously). This is not an issue as the winning update will expire tokens as appropriate, plus the tokens are checked for expiry on use.
- Loading branch information
Showing
2 changed files
with
74 additions
and
1 deletion.
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