You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/08/09 03:41:08 UTC

[6/23] git commit: agent: Read configuration directive 'workers' for number of threads

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'


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d91b7dcd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d91b7dcd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d91b7dcd

Branch: refs/heads/vpc
Commit: d91b7dcd4beee610e2b4839dbdecafab49053af1
Parents: 47cad4e
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Wed Aug 8 22:43:27 2012 +0200
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Wed Aug 8 22:45:02 2012 +0200

----------------------------------------------------------------------
 agent/src/com/cloud/agent/AgentShell.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d91b7dcd/agent/src/com/cloud/agent/AgentShell.java
----------------------------------------------------------------------
diff --git a/agent/src/com/cloud/agent/AgentShell.java b/agent/src/com/cloud/agent/AgentShell.java
index ca3f7de..05caf8e 100644
--- a/agent/src/com/cloud/agent/AgentShell.java
+++ b/agent/src/com/cloud/agent/AgentShell.java
@@ -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];