mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
align atomic variables once more for 32bit (#14721)
This commit is contained in:
parent
e290c010e6
commit
4ce86ff5fa
13
cmd/iam.go
13
cmd/iam.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user