From 3a0ca7af8ccf23bb62707280c32648026f27dcc4 Mon Sep 17 00:00:00 2001 From: zxxxhonest <86346642+zxxxhonest@users.noreply.github.com> Date: Wed, 23 Jun 2021 22:15:43 +0800 Subject: [PATCH] panic: unaligned 64-bit atomic operation (#12559) goroutine 1 [running]: runtime/internal/atomic.panicUnaligned() /usr/local/go/src/runtime/internal/atomic/unaligned.go:8 +0x24 golang doc: // BUG(rsc): On x86-32, the 64-bit functions use instructions unavailable before the Pentium MMX. // // On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core. // // On ARM, x86-32, and 32-bit MIPS, // it is the caller's responsibility to arrange for 64-bit // alignment of 64-bit words accessed atomically. The first word in a // variable or in an allocated struct, array, or slice can be relied upon to be // 64-bit aligned. --- cmd/http-stats.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/http-stats.go b/cmd/http-stats.go index acf57632c..ca306908a 100644 --- a/cmd/http-stats.go +++ b/cmd/http-stats.go @@ -138,15 +138,15 @@ func (stats *HTTPAPIStats) Load() map[string]int { // HTTPStats holds statistics information about // HTTP requests made by all clients type HTTPStats struct { + rejectedRequestsAuth uint64 + rejectedRequestsTime uint64 + rejectedRequestsHeader uint64 + rejectedRequestsInvalid uint64 s3RequestsInQueue int32 currentS3Requests HTTPAPIStats totalS3Requests HTTPAPIStats totalS3Errors HTTPAPIStats totalS3Canceled HTTPAPIStats - rejectedRequestsAuth uint64 - rejectedRequestsTime uint64 - rejectedRequestsHeader uint64 - rejectedRequestsInvalid uint64 } func (st *HTTPStats) addRequestsInQueue(i int32) {