diff options
author | varun gudisena <vg411h@att.com> | 2017-12-06 16:01:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-12-06 16:01:02 +0000 |
commit | 792f22fe3bcb7c7925c686a35c7c2193b902b73d (patch) | |
tree | f8f01a721bd411bb5b6acafb0936c91a800c3d35 /src/main/java/com | |
parent | a625954e88367c069758ca34824864c5c49bf085 (diff) | |
parent | 78d09a8c2ed502b15725d83c69179ac97d62b24e (diff) |
Merge "Critical For Use the original value instead"
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/att/nsa/mr/client/HostSelector.java | 2 |
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() |