cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: use long math for long values
Date Thu, 24 Oct 2013 03:50:15 GMT
Updated Branches:
  refs/heads/cassandra-2.0 3cf18d71d -> a2b224a45


use long math for long values


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

Branch: refs/heads/cassandra-2.0
Commit: a2b224a45975286ce4db5133d3a8f4b19e05ec63
Parents: 3cf18d7
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Wed Oct 23 23:49:45 2013 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Wed Oct 23 23:49:45 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a2b224a4/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index f9126c7..5b4a176 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -709,7 +709,7 @@ public class StorageService extends NotificationBroadcasterSupport implements
IE
                         InetAddress existing = tokenMetadata.getEndpoint(token);
                         if (existing != null)
                         {
-                            long nanoDelay = delay * 1000000;
+                            long nanoDelay = delay * 1000000L;
                             if (Gossiper.instance.getEndpointStateForEndpoint(existing).getUpdateTimestamp()
> (System.nanoTime() - nanoDelay))
                                 throw new UnsupportedOperationException("Cannnot replace
a live node... ");
                             current.add(existing);


Mime
View raw message