cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject [4/4] git commit: right seems more right than left
Date Wed, 18 Jul 2012 03:16:19 GMT
right seems more right than left


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

Branch: refs/heads/vnodes
Commit: 0e7d40e81fd4859fb9f146530df15a07e621306e
Parents: fa7239c
Author: Eric Evans <eevans@apache.org>
Authored: Tue Jul 17 22:10:18 2012 -0500
Committer: Eric Evans <eevans@apache.org>
Committed: Tue Jul 17 22:10:18 2012 -0500

----------------------------------------------------------------------
 .../apache/cassandra/service/StorageService.java   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0e7d40e8/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 bcad055..99fbd84 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -2913,8 +2913,8 @@ public class StorageService implements IEndpointStateChangeSubscriber,
StorageSe
                 float ownership = 0.0f;
                 for (Range<Token> range : getRangesForEndpoint(keyspace, endpoint))
                 {
-                    if (tokenOwnership.containsKey(range.left))
-                        ownership += tokenOwnership.get(range.left);
+                    if (tokenOwnership.containsKey(range.right))
+                        ownership += tokenOwnership.get(range.right);
                 }
                 finalOwnership.put(endpoint, ownership);
             }


Mime
View raw message