smiklosovic commented on code in PR #2046:
URL: https://github.com/apache/cassandra/pull/2046#discussion_r1158245437


##########
src/java/org/apache/cassandra/config/DatabaseDescriptor.java:
##########
@@ -1835,10 +1855,14 @@ public static InetAddressAndPort getReplaceAddress()
     {
         try
         {
-            if (System.getProperty(Config.PROPERTY_PREFIX + "replace_address", 
null) != null)
-                return 
InetAddressAndPort.getByName(System.getProperty(Config.PROPERTY_PREFIX + 
"replace_address", null));
-            else if (System.getProperty(Config.PROPERTY_PREFIX + 
"replace_address_first_boot", null) != null)
-                return 
InetAddressAndPort.getByName(System.getProperty(Config.PROPERTY_PREFIX + 
"replace_address_first_boot", null));
+            String replaceAddress = REPLACE_ADDRESS.getString();

Review Comment:
   +1 if it does the same thing.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to