Merge pull request #8498 from justinsb/proxier_lock_cleanupstalestickysessions

Add mutex lock to cleanupStaleStickySessions
This commit is contained in:
Tim Hockin 2015-05-19 09:51:37 -07:00
commit 9f808d8e16

View File

@ -154,6 +154,8 @@ func (proxier *Proxier) ensurePortals() {
// clean up any stale sticky session records in the hash map.
func (proxier *Proxier) cleanupStaleStickySessions() {
proxier.mu.Lock()
defer proxier.mu.Unlock()
for name := range proxier.serviceMap {
proxier.loadBalancer.CleanupStaleStickySessions(name)
}