Fix for #1788. Rearrange struct fields.

This commit is contained in:
Abiola Ibrahim 2017-07-28 17:01:52 +01:00
parent 36d8d2c7de
commit dd3f460cf8

View file

@ -366,8 +366,11 @@ type balancer interface {
// roundRobin is a round robin balancer for fastcgi upstreams.
type roundRobin struct {
addresses []string
// Known Go bug: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
// must be first field for 64 bit alignment
// on x86 and arm.
index int64
addresses []string
}
func (r *roundRobin) Address() string {