jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r156145 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Fri, 04 Mar 2005 08:54:30 GMT
Author: stefan
Date: Fri Mar  4 00:54:27 2005
New Revision: 156145

URL: http://svn.apache.org/viewcvs?view=rev&rev=156145
Log:
fixing issue reported by edgar poce: close versioning filesystem on rep shutdown 

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java?view=diff&r1=156144&r2=156145
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java Fri
Mar  4 00:54:27 2005
@@ -26,10 +26,10 @@
 import org.apache.jackrabbit.core.fs.FileSystem;
 import org.apache.jackrabbit.core.fs.FileSystemException;
 import org.apache.jackrabbit.core.fs.FileSystemResource;
-import org.apache.jackrabbit.core.security.CredentialsCallbackHandler;
 import org.apache.jackrabbit.core.nodetype.NodeTypeImpl;
 import org.apache.jackrabbit.core.nodetype.NodeTypeRegistry;
 import org.apache.jackrabbit.core.observation.ObservationManagerFactory;
+import org.apache.jackrabbit.core.security.CredentialsCallbackHandler;
 import org.apache.jackrabbit.core.state.ItemStateException;
 import org.apache.jackrabbit.core.state.PMContext;
 import org.apache.jackrabbit.core.state.PersistenceManager;
@@ -533,6 +533,13 @@
             repStore.close();
         } catch (FileSystemException e) {
             log.error("error while closing repository filesystem", e);
+        }
+
+        try {
+            // close versioning file system
+            repConfig.getVersioningConfig().getFileSystem().close();
+        } catch (FileSystemException e) {
+            log.error("error while closing versioning filesystem", e);
         }
 
         // make sure this instance is not used anymore



Mime
View raw message