• Kouhei Ueno's avatar
    Avoid data race in Proxier.OnUpdate · 2e02967a
    Kouhei Ueno authored
    The bug was that the proxier is passed as value on method decleration.
    This caused a copy of Proxier to be created when the method was invoked.
    The copy being a shallow copy turned out to have them both reference
    a same map instance, but their mutexes were different instances.
    This turned out to use different mutexes before operating on a same map
    instance, which didn't make sense.
    2e02967a
Name
Last commit
Last update
..
config Loading commit data...
doc.go Loading commit data...
loadbalancer.go Loading commit data...
proxier.go Loading commit data...
proxier_test.go Loading commit data...
roundrobin.go Loading commit data...
roundrobin_test.go Loading commit data...