View | Details | Raw Unified | Return to bug 62175
Collapse All | Expand All

(-)a/java/org/apache/catalina/session/PersistentManagerBase.java (-14 / +16 lines)
Lines 718-736 public abstract class PersistentManagerBase extends ManagerBase Link Here
718
                }
718
                }
719
719
720
                if (session != null) {
720
                if (session != null) {
721
                    if(log.isDebugEnabled())
721
                    reactivateLoadedSession(id, session);
722
                        log.debug(sm.getString("persistentManager.swapIn", id));
723
724
                    session.setManager(this);
725
                    // make sure the listeners know about it.
726
                    ((StandardSession)session).tellNew();
727
                    add(session);
728
                    ((StandardSession)session).activate();
729
                    // endAccess() to ensure timeouts happen correctly.
730
                    // access() to keep access count correct or it will end up
731
                    // negative
732
                    session.access();
733
                    session.endAccess();
734
                }
722
                }
735
            }
723
            }
736
        }
724
        }
Lines 744-749 public abstract class PersistentManagerBase extends ManagerBase Link Here
744
732
745
    }
733
    }
746
734
735
    private void reactivateLoadedSession(String id, Session session) {
736
        if(log.isDebugEnabled())
737
            log.debug(sm.getString("persistentManager.swapIn", id));
738
739
        session.setManager(this);
740
        // make sure the listeners know about it.
741
        ((StandardSession)session).tellNew();
742
        add(session);
743
        ((StandardSession)session).activate();
744
        // endAccess() to ensure timeouts happen correctly.
745
        // access() to keep access count correct or it will end up
746
        // negative
747
        session.access();
748
        session.endAccess();
749
    }
747
750
748
    private Session loadSessionFromStore(String id) throws IOException {
751
    private Session loadSessionFromStore(String id) throws IOException {
749
        try {
752
        try {
750
- 

Return to bug 62175