mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
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.
This commit is contained in:
@@ -138,15 +138,15 @@ func (stats *HTTPAPIStats) Load() map[string]int {
|
|||||||
// HTTPStats holds statistics information about
|
// HTTPStats holds statistics information about
|
||||||
// HTTP requests made by all clients
|
// HTTP requests made by all clients
|
||||||
type HTTPStats struct {
|
type HTTPStats struct {
|
||||||
|
rejectedRequestsAuth uint64
|
||||||
|
rejectedRequestsTime uint64
|
||||||
|
rejectedRequestsHeader uint64
|
||||||
|
rejectedRequestsInvalid uint64
|
||||||
s3RequestsInQueue int32
|
s3RequestsInQueue int32
|
||||||
currentS3Requests HTTPAPIStats
|
currentS3Requests HTTPAPIStats
|
||||||
totalS3Requests HTTPAPIStats
|
totalS3Requests HTTPAPIStats
|
||||||
totalS3Errors HTTPAPIStats
|
totalS3Errors HTTPAPIStats
|
||||||
totalS3Canceled HTTPAPIStats
|
totalS3Canceled HTTPAPIStats
|
||||||
rejectedRequestsAuth uint64
|
|
||||||
rejectedRequestsTime uint64
|
|
||||||
rejectedRequestsHeader uint64
|
|
||||||
rejectedRequestsInvalid uint64
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (st *HTTPStats) addRequestsInQueue(i int32) {
|
func (st *HTTPStats) addRequestsInQueue(i int32) {
|
||||||
|
|||||||
Reference in New Issue
Block a user