Merge "Increase 'execution.defaultThreadPoolSize' default and min to 2" into stable-2.16

This commit is contained in:
David Pursehouse
2019-11-15 00:04:46 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ public class WorkQueue {
@Inject
WorkQueue(IdGenerator idGenerator, @GerritServerConfig Config cfg, MetricMaker metrics) {
this(idGenerator, cfg.getInt("execution", "defaultThreadPoolSize", 1), metrics);
this(idGenerator, Math.max(cfg.getInt("execution", "defaultThreadPoolSize", 2), 2), metrics);
}
/** Constructor to allow binding the WorkQueue more explicitly in a vhost setup. */