Permalink
Browse files

Fixed typo in adminCoreThreads that was causing an IllegalArgumentExc…

…eption in ThreadPoolExecutor

because coreThreads was greater than maxThreads.
  • Loading branch information...
1 parent 112fbee commit 497e662f14dc64295b77942e299958868a737ac6 @eliast eliast committed May 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/voldemort/server/VoldemortConfig.java
View
2 src/java/voldemort/server/VoldemortConfig.java
@@ -172,7 +172,7 @@ public VoldemortConfig(Props props) {
this.coreThreads = props.getInt("core.threads", Math.max(1, maxThreads / 2));
this.adminMaxThreads = props.getInt("admin.max.threads", 100);
- this.adminCoreThreads = props.getInt("admin.core.threads", Math.max(1, maxThreads / 2));
+ this.adminCoreThreads = props.getInt("admin.core.threads", Math.max(1, adminMaxThreads / 2));
this.adminStreamBufferSize = (int) props.getBytes("admin.streams.buffer.size",
10 * 1000 * 1000);

0 comments on commit 497e662

Please sign in to comment.