mirror of https://github.com/apache/cloudstack.git
agent: Read configuration directive 'workers' for number of threads
The example configuration file said 'workers' was the directive, but the code said 'threads'. Now we accept both to prevent configuration errors, but the example config remains 'workers'
This commit is contained in:
parent
47cad4ee59
commit
d91b7dcd4b
|
|
@ -292,7 +292,7 @@ public class AgentShell implements IAgentShell {
|
|||
|
||||
if (tokens[0].equalsIgnoreCase("port")) {
|
||||
port = tokens[1];
|
||||
} else if (tokens[0].equalsIgnoreCase("threads")) {
|
||||
} else if (tokens[0].equalsIgnoreCase("threads") || tokens[0].equalsIgnoreCase("workers")) {
|
||||
workers = tokens[1];
|
||||
} else if (tokens[0].equalsIgnoreCase("host")) {
|
||||
host = tokens[1];
|
||||
|
|
|
|||
Loading…
Reference in New Issue