Skip to content

Commit

Permalink
plugin/trace: fix struct allignment
Browse files Browse the repository at this point in the history
A 64 bit entity needs to be the first in a struct to make it work on 32
bit systems.

Fixes: #4111

Signed-off-by: Miek Gieben <miek@miek.nl>
  • Loading branch information
miekg committed Sep 9, 2020
1 parent ca43f84 commit 96d3b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/trace/trace.go
Expand Up @@ -29,6 +29,8 @@ const (
)

type trace struct {
count uint64 // as per Go spec, needs to be first element in a struct

Next plugin.Handler
Endpoint string
EndpointType string
Expand All @@ -37,7 +39,6 @@ type trace struct {
serviceName string
clientServer bool
every uint64
count uint64
Once sync.Once
}

Expand Down

0 comments on commit 96d3b4a

Please sign in to comment.