jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r798940 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Date Wed, 29 Jul 2009 15:13:22 GMT
Author: mreutegg
Date: Wed Jul 29 15:13:22 2009
New Revision: 798940

URL: http://svn.apache.org/viewvc?rev=798940&view=rev
Log:
JCR-2231: Avoid item state reads during Session.logout()

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java?rev=798940&r1=798939&r2=798940&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Wed Jul 29 15:13:22 2009
@@ -313,6 +313,9 @@
      * {@inheritDoc}
      */
     public void dispose() {
+        // remove hierarchy manager as listener to avoid
+        // unnecessary work during stateMgr.dispose()
+        removeListener(hierMgr);
         // discard all transient changes
         disposeAllTransientItemStates();
         // dispose our (i.e. 'local') state manager



Mime
View raw message