6d279ed01c1069d14420584f3f7d5bc1794cf804 | Author: Sascha Steinbiss <satta@debian.org>
| 2022-12-13 00:08:12+01:00
reorder struct items for alignment
On 32-bit platforms, use of atomic.* 64-bit functions needs to be
careful to ensure 64-bit alignment. This was a problem in the
rackAwareRR struct, causing panics on 32-bit platforms.
https://pkg.go.dev/sync/atomic#pkg-note-BUG notes that the first word in
a struct is always 64-bit aligned, to moving the struct member that
causes the issue to the beginning of the struct solves the problem.
See #1666.