You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/03/24 21:21:01 UTC

[18/19] git commit: Fixed reset counter

Fixed reset counter


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

Branch: refs/heads/two-dot-o
Commit: af396d55c9d28e9b557a52d7888d21cd866d3948
Parents: 880e24a
Author: Todd Nine <tn...@apigee.com>
Authored: Mon Mar 24 13:07:44 2014 -0700
Committer: Todd Nine <tn...@apigee.com>
Committed: Mon Mar 24 13:07:44 2014 -0700

----------------------------------------------------------------------
 stack/awscluster/src/main/groovy/wait_for_instances.groovy | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/af396d55/stack/awscluster/src/main/groovy/wait_for_instances.groovy
----------------------------------------------------------------------
diff --git a/stack/awscluster/src/main/groovy/wait_for_instances.groovy b/stack/awscluster/src/main/groovy/wait_for_instances.groovy
index 7950b27..04e241f 100644
--- a/stack/awscluster/src/main/groovy/wait_for_instances.groovy
+++ b/stack/awscluster/src/main/groovy/wait_for_instances.groovy
@@ -22,9 +22,17 @@ def sdbClient = new AmazonSimpleDBClient(creds)
 println "Waiting for Cassandra nodes to register..."
     
 def count = 0
+
 while (true) {
     try {
+
+
+
         def selectResult = sdbClient.select(new SelectRequest((String)"select * from `${domain}` where itemName() is not null  order by itemName()"))
+
+
+        count = 0
+
         for (item in selectResult.getItems()) {
             def att = item.getAttributes().get(0)
             if (att.getValue().equals(stackName)) {