[ http://issues.apache.org/jira/browse/JCR-225?page=all ]

Dominique Pfister updated JCR-225:
----------------------------------

    Priority: Minor  (was: Major)

This method is invoked at the time a session is logging out, that is, the 
session gets invalidated. The javadoc does not correspond to the actual 
implementation, of course, but the net effect is the same, since the session's 
lock token are no longer accessible. Therefore lowering priority.

> LockInfo.logginOut(SessionImpl): javadoc does not correspond to executed code
> -----------------------------------------------------------------------------
>
>          Key: JCR-225
>          URL: http://issues.apache.org/jira/browse/JCR-225
>      Project: Jackrabbit
>         Type: Improvement
>   Components: locks
>     Reporter: angela
>     Priority: Minor

>
> /**
>      * [EMAIL PROTECTED]
>      * <p/>
>      * When the owning session is logging out, we have to perform some
>      * operations depending on the lock type.
>      * (1) If the lock was session-scoped, we unlock the node.
>      * (2) If the lock was open-scoped, we remove the lock token
>      *     from the session.
>      */
>     public void loggingOut(SessionImpl session) {
>         if (live) {
>             if (sessionScoped) {
>                 lockMgr.unlock(this);
>             } else {
>                 if (session.equals(lockHolder)) {
>                     lockHolder = null;
>                 }
>             }
>         }
>     } 
> if (2) is true, the lockToken is not removed from the session (at least not 
> within the method).
> regards
> angela

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to