diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-09-18 15:48:42 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-09-18 15:48:42 +0200 |
commit | ec5e957ef3e00d3a89007a8615b66da8b65703e8 (patch) | |
tree | 483e25e5d8ea9d69950b4111fad06d7e3a11005b /container-core/src/main | |
parent | 44f08a00c6537929bcf8a812b4ec4fb046e8ed1c (diff) |
Ensure that we will set the vipstatus to good when we are good.
Diffstat (limited to 'container-core/src/main')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/handler/VipStatus.java | 4 |
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; + } } } |