Author: kwin
Date: Wed Apr 12 08:51:53 2017
New Revision: 1791093
URL: http://svn.apache.org/viewvc?rev=1791093&view=rev
Log:
SLING-6296 allow min pool sizes of 0
Modified:
sling/trunk/bundles/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
Modified:
sling/trunk/bundles/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java?rev=1791093&r1=1791092&r2=1791093&view=diff
==============================================================================
---
sling/trunk/bundles/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
(original)
+++
sling/trunk/bundles/commons/threads/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
Wed Apr 12 08:51:53 2017
@@ -82,9 +82,9 @@ public class DefaultThreadPool
delegateThreadFactory = this.configuration.getFactory();
}
// Min pool size
- if (this.configuration.getMinPoolSize() < 1) {
+ if (this.configuration.getMinPoolSize() < 0) {
this.configuration.setMinPoolSize(1);
- this.logger.warn("min-pool-size < 1 for pool \"" + this.name +
"\". Set to 1");
+ this.logger.warn("min-pool-size < 0 for pool \"" + this.name +
"\". Set to 1");
}
// Max pool size
if ( this.configuration.getMaxPoolSize() < 0 ) {