Github user sberyozkin commented on a diff in the pull request:

    https://github.com/apache/cxf/pull/273#discussion_r117440452
  
    --- Diff: 
rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/provider/JPAOAuthDataProvider.java
 ---
    @@ -213,6 +221,25 @@ public RefreshToken execute(EntityManager em) {
             });
         }
     
    +    protected void lockRefreshTokenForUpdate(final RefreshToken 
refreshToken) {
    +        try {
    +            execute(new EntityManagerOperation<Void>() {
    +
    +                @Override
    +                public Void execute(EntityManager em) {
    +                    Map<String, Object> options = Collections.emptyMap();
    +                    if (pessimisticLockTimeout > 0) {
    +                        
Collections.singletonMap("javax.persistence.lock.timeout", 
pessimisticLockTimeout);
    --- End diff --
    
    Good catch, I'm applying PR now so will fix


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to