Skip to content

Commit 3538aea

Browse files
authored
Merge pull request #2915 from nats-io/fix_atomic_unaligned
[FIXED] Panic when monitoring enabled on non 64bit architectures
2 parents 7a98563 + dde235a commit 3538aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ type Info struct {
107107

108108
// Server is our main struct.
109109
type Server struct {
110+
// Fields accessed with atomic operations need to be 64-bit aligned
110111
gcid uint64
112+
// How often user logon fails due to the issuer account not being pinned.
113+
pinnedAccFail uint64
111114
stats
112115
mu sync.Mutex
113116
kp nkeys.KeyPair
@@ -266,9 +269,6 @@ type Server struct {
266269
// Keep track of what that user name is for config reload purposes.
267270
sysAccOnlyNoAuthUser string
268271

269-
// How often user logon fails due to the issuer account not being pinned.
270-
pinnedAccFail uint64
271-
272272
// This is a central logger for IPQueues when the number of pending
273273
// messages reaches a certain thresold (per queue)
274274
ipqLog *srvIPQueueLogger

0 commit comments

Comments
 (0)