You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(session): make InMemorySessionStore.messageID increment atomic #3592
pkg/session/store.go:137 is a plain int64 incremented at :284 with no atomic/mutex, while the store is hit concurrently (HTTP handlers + runtime PersistenceObserver). Lost increments → duplicate message IDs → UpdateMessage (searches by ID, store.go:290-314) can edit the wrong message.
Fix
Use atomic.Int64 (or a mutex) for the counter.
Acceptance
Concurrent AddMessage test asserts unique IDs; -race clean.
Activity
Merge pull request #3607 from docker/fix/3592-atomic-messageid
fix(session): make InMemorySessionStore.messageID atomic (docker#3592)