Author: jbellis
Date: Fri Nov 13 15:18:31 2009
New Revision: 835873

URL: http://svn.apache.org/viewvc?rev=835873&view=rev
Log:
fix misleading comment.  patch by jbellis for CASSANDRA-545

Modified:
    
incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java

Modified: 
incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
URL: 
http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java?rev=835873&r1=835872&r2=835873&view=diff
==============================================================================
--- 
incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
 (original)
+++ 
incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
 Fri Nov 13 15:18:31 2009
@@ -516,12 +516,8 @@
         {
             map.put(entry.getKey().getHostAddress(), 
FileUtils.stringifyFileSize(entry.getValue()));
         }
-        // gossiper doesn't bother sending to itself, so if there are no other 
nodes around
-        // we need to cheat to get load information for the local node
-        if (!map.containsKey(FBUtilities.getLocalAddress().getHostAddress()))
-        {
-            map.put(FBUtilities.getLocalAddress().getHostAddress(), 
getLoadString());
-        }
+        // gossiper doesn't see its own updates, so we need to special-case 
the local node
+        map.put(FBUtilities.getLocalAddress().getHostAddress(), 
getLoadString());
         return map;
     }
 


Reply via email to