This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch CASSANDRA-11671
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit 4afc5047d8c85ccbe34ad7508c7a9f407c8240d1
Author: artsiom <[email protected]>
AuthorDate: Fri Aug 17 17:13:54 2018 +0300

    switched to use SS::isInitialized()
---
 src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java 
b/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
index 53e4d1d..475f4f8 100644
--- a/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
+++ b/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
@@ -284,7 +284,7 @@ public class DynamicEndpointSnitch extends 
AbstractEndpointSnitch implements ILa
 
     private void updateScores() // this is expensive
     {
-        if (!StorageService.instance.isGossipActive())
+        if (!StorageService.instance.isInitialized())
             return;
         if (!registered)
         {

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to