This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 022a1ac  Fixed bug in ThreadPoolProfile clone. Thanks to Andreas 
Becker for reporting this.
022a1ac is described below

commit 022a1acc7b316fff23e44db210e25628dcdc7f25
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Aug 11 16:16:07 2020 +0200

    Fixed bug in ThreadPoolProfile clone. Thanks to Andreas Becker for 
reporting this.
---
 .../camel-api/src/main/java/org/apache/camel/spi/ThreadPoolProfile.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolProfile.java 
b/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolProfile.java
index f164819..6dc32e7 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolProfile.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolProfile.java
@@ -279,7 +279,7 @@ public class ThreadPoolProfile implements Serializable, 
Cloneable {
         cloned.setKeepAliveTime(keepAliveTime);
         cloned.setMaxPoolSize(maxPoolSize);
         cloned.setMaxQueueSize(maxQueueSize);
-        cloned.setPoolSize(maxPoolSize);
+        cloned.setPoolSize(poolSize);
         cloned.setAllowCoreThreadTimeOut(allowCoreThreadTimeOut);
         cloned.setRejectedPolicy(rejectedPolicy);
         cloned.setTimeUnit(timeUnit);

Reply via email to