Commit dd3f460c authored by Abiola Ibrahim's avatar Abiola Ibrahim

Fix for #1788. Rearrange struct fields.

parent 36d8d2c7
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment