cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/6] git commit: fix indentation
Date Sat, 03 May 2014 17:48:13 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 af96d405b -> aa2b769aa
  refs/heads/cassandra-2.1 c7c5f6841 -> 3bc4de96d
  refs/heads/trunk 2bb867a2d -> 2bf6d8a68


fix indentation


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

Branch: refs/heads/cassandra-2.0
Commit: aa2b769aacd968de9ace314a9219996d9ec7d097
Parents: af96d40
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Sat May 3 12:44:02 2014 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Sat May 3 12:44:05 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/aa2b769a/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java b/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java
index 05fbea2..b4d3b19 100644
--- a/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java
+++ b/src/java/org/apache/cassandra/locator/GoogleCloudSnitch.java
@@ -53,15 +53,15 @@ public class GoogleCloudSnitch extends AbstractNetworkTopologySnitch
     public GoogleCloudSnitch() throws IOException, ConfigurationException
     {
         String response = gceApiCall(ZONE_NAME_QUERY_URL);
-	String[] splits = response.split("/");
-	String az = splits[splits.length - 1];
+        String[] splits = response.split("/");
+        String az = splits[splits.length - 1];
 
         // Split "us-central1-a" or "asia-east1-a" into "us-central1"/"a" and "asia-east1"/"a".
         splits = az.split("-");
         gceZone = splits[splits.length - 1];
 
-	int lastRegionIndex = az.lastIndexOf("-");
-	gceRegion = az.substring(0, lastRegionIndex);
+        int lastRegionIndex = az.lastIndexOf("-");
+        gceRegion = az.substring(0, lastRegionIndex);
 
         String datacenterSuffix = (new SnitchProperties()).get("dc_suffix", "");
         gceRegion = gceRegion.concat(datacenterSuffix);


Mime
View raw message