summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-09-18 15:48:42 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2019-09-18 15:48:42 +0200
commitec5e957ef3e00d3a89007a8615b66da8b65703e8 (patch)
tree483e25e5d8ea9d69950b4111fad06d7e3a11005b /container-core
parent44f08a00c6537929bcf8a812b4ec4fb046e8ed1c (diff)
Ensure that we will set the vipstatus to good when we are good.
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/VipStatus.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
index 6f827041ffb..b9ef1627ce7 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatus.java
@@ -117,7 +117,9 @@ public class VipStatus {
/** Returns whether this container should receive traffic at this time */
public boolean isInRotation() {
- return currentlyInRotation;
+ synchronized (mutex) {
+ return currentlyInRotation;
+ }
}
}