sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject [sling-org-apache-sling-jcr-oak-server] 01/02: SLING-7607 Move ThreadPool (Executor) handling out of OakSlingRepositoryManager
Date Mon, 03 Dec 2018 08:25:37 GMT
This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-oak-server.git

commit 1b46ef17bbfc584a3264b759c25d74937d197d47
Author: Oliver Lietz <olli@apache.org>
AuthorDate: Mon Dec 3 08:59:21 2018 +0100

    SLING-7607 Move ThreadPool (Executor) handling out of OakSlingRepositoryManager
    
    style
---
 .../sling/jcr/oak/server/internal/DefaultThreadPoolRegistrar.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jcr/oak/server/internal/DefaultThreadPoolRegistrar.java
b/src/main/java/org/apache/sling/jcr/oak/server/internal/DefaultThreadPoolRegistrar.java
index 48b26e5..62b5237 100644
--- a/src/main/java/org/apache/sling/jcr/oak/server/internal/DefaultThreadPoolRegistrar.java
+++ b/src/main/java/org/apache/sling/jcr/oak/server/internal/DefaultThreadPoolRegistrar.java
@@ -49,7 +49,7 @@ public class DefaultThreadPoolRegistrar {
     private void activate(final BundleContext bundleContext) {
         threadPool = threadPoolManager.get(ThreadPoolManager.DEFAULT_THREADPOOL_NAME);
         final Dictionary<String, String> properties = new Hashtable<>();
-        properties.put("name", ThreadPoolManager.DEFAULT_THREADPOOL_NAME);
+        properties.put("name", threadPool.getName());
         serviceRegistration = bundleContext.registerService(ThreadPool.class, threadPool,
properties);
     }
 


Mime
View raw message