Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type Response struct {
type Connection struct {
conn net.Conn
opts *ConnectOpts
_ [4]byte
token int64
cursors map[int64]*Cursor
bad bool
Expand Down Expand Up @@ -164,6 +165,7 @@ func (c *Connection) sendQuery(q Query) error {
// getToken generates the next query token, used to number requests and match
// responses with requests.
func (c *Connection) nextToken() int64 {
// requires c.token to be 64-bit aligned on ARM
return atomic.AddInt64(&c.token, 1)
}

Expand Down