align atomic variables once more for 32bit (#14721)

This commit is contained in:
Harshavardhana 2022-04-09 22:19:44 -07:00 committed by GitHub
parent e290c010e6
commit 4ce86ff5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,13 @@ const (
// IAMSys - config system.
type IAMSys struct {
// Need to keep them here to keep alignment - ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
// metrics
LastRefreshTimeUnixNano uint64
LastRefreshDurationMilliseconds uint64
TotalRefreshSuccesses uint64
TotalRefreshFailures uint64
sync.Mutex
iamRefreshInterval time.Duration
@ -78,12 +85,6 @@ type IAMSys struct {
// configLoaded will be closed and remain so after first load.
configLoaded chan struct{}
// metrics
LastRefreshTimeUnixNano uint64
LastRefreshDurationMilliseconds uint64
TotalRefreshSuccesses uint64
TotalRefreshFailures uint64
}
// IAMUserType represents a user type inside MinIO server