aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2017-12-06 16:01:02 +0000
committerGerrit Code Review <gerrit@onap.org>2017-12-06 16:01:02 +0000
commit792f22fe3bcb7c7925c686a35c7c2193b902b73d (patch)
treef8f01a721bd411bb5b6acafb0936c91a800c3d35
parenta625954e88367c069758ca34824864c5c49bf085 (diff)
parent78d09a8c2ed502b15725d83c69179ac97d62b24e (diff)
Merge "Critical For Use the original value instead"
-rw-r--r--src/main/java/com/att/nsa/mr/client/HostSelector.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/HostSelector.java b/src/main/java/com/att/nsa/mr/client/HostSelector.java
index de0e52c..7e92bd8 100644
--- a/src/main/java/com/att/nsa/mr/client/HostSelector.java
+++ b/src/main/java/com/att/nsa/mr/client/HostSelector.java
@@ -66,6 +66,7 @@ public class HostSelector
if (signature == null) {
return;
}
+ if(signature!=null && !baseHosts.isEmpty()) {
int index = Math.abs(signature.hashCode()) % baseHosts.size();
Iterator it = this.fBaseHosts.iterator();
@@ -74,6 +75,7 @@ public class HostSelector
it.next();
}
this.fIdealHost = ((String)it.next());
+ }
}
public String selectBaseHost()