You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2018/12/03 08:25:37 UTC
[sling-org-apache-sling-jcr-oak-server] 01/02: SLING-7607 Move
ThreadPool (Executor) handling out of OakSlingRepositoryManager
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 <ol...@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);
}