cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject git commit: remove redundant startTime
Date Mon, 01 Jul 2013 06:25:31 GMT
Updated Branches:
  refs/heads/trunk 5fe804c46 -> 09ea74620


remove redundant startTime


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

Branch: refs/heads/trunk
Commit: 09ea746207a448d8ede85e7905f05e5f9535fb1f
Parents: 5fe804c
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Sat Jun 29 18:43:42 2013 -0700
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Sun Jun 30 23:25:22 2013 -0700

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageProxy.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/09ea7462/src/java/org/apache/cassandra/service/StorageProxy.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageProxy.java b/src/java/org/apache/cassandra/service/StorageProxy.java
index c57d01e..9f75fce 100644
--- a/src/java/org/apache/cassandra/service/StorageProxy.java
+++ b/src/java/org/apache/cassandra/service/StorageProxy.java
@@ -1076,7 +1076,7 @@ public class StorageProxy implements StorageProxyMBean
             throw new IsBootstrappingException();
         }
 
-        long startTime = System.nanoTime();
+        long start = System.nanoTime();
         List<Row> rows = null;
         try
         {
@@ -1089,7 +1089,6 @@ public class StorageProxy implements StorageProxyMBean
                 ReadCommand command = commands.get(0);
                 CFMetaData metadata = Schema.instance.getCFMetaData(command.ksName, command.cfName);
 
-                long start = System.nanoTime();
                 long timeout = TimeUnit.MILLISECONDS.toNanos(DatabaseDescriptor.getCasContentionTimeout());
                 while (true)
                 {
@@ -1125,7 +1124,7 @@ public class StorageProxy implements StorageProxyMBean
         }
         finally
         {
-            readMetrics.addNano(System.nanoTime() - startTime);
+            readMetrics.addNano(System.nanoTime() - start);
         }
         return rows;
     }


Mime
View raw message