jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r999285 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Tue, 21 Sep 2010 09:14:45 GMT
Author: thomasm
Date: Tue Sep 21 09:14:45 2010
New Revision: 999285

URL: http://svn.apache.org/viewvc?rev=999285&view=rev
Log:
JCR-2752 The "jackrabbit-pool-" thread prevents the process from stopping

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=999285&r1=999284&r2=999285&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Tue Sep 21 09:14:45 2010
@@ -259,8 +259,7 @@ public class RepositoryImpl extends Abst
                         final Thread t = new Thread(null, r,
                                               "jackrabbit-pool-" + threadNumber.getAndIncrement(),
                                               0);
-                        if (t.isDaemon())
-                            t.setDaemon(false);
+                        t.setDaemon(true);
                         if (t.getPriority() != Thread.NORM_PRIORITY)
                             t.setPriority(Thread.NORM_PRIORITY);
                         t.setContextClassLoader(poolClassLoader);
@@ -346,7 +345,7 @@ public class RepositoryImpl extends Abst
 
             // Initialise the security manager;
             initSecurityManager();
-            
+
             // after the workspace is initialized we pass a system session to
             // the virtual node type manager
 
@@ -1384,7 +1383,7 @@ public class RepositoryImpl extends Abst
      * <p>
      * Note that you should use the {@link RepositoryManager} interface
      * to access this functionality. This RepositoryImpl method may be
-     * removed in future Jackrabbit versions. 
+     * removed in future Jackrabbit versions.
      */
     public GarbageCollector createDataStoreGarbageCollector()
             throws RepositoryException {



Mime
View raw message