diff options
author | 2020-09-09 10:45:14 +0200 | |
---|---|---|
committer | 2020-09-09 10:45:14 +0200 | |
commit | e082bb5a61a94bf5be653900a568db26cae0a6e1 (patch) | |
tree | 15887f8b471c943f587034311b098b778225ff23 /plugin/trace/trace.go | |
parent | 04af1c692c24e260bd75163d9e52be367c5ab5c4 (diff) | |
download | coredns-e082bb5a61a94bf5be653900a568db26cae0a6e1.tar.gz coredns-e082bb5a61a94bf5be653900a568db26cae0a6e1.tar.zst coredns-e082bb5a61a94bf5be653900a568db26cae0a6e1.zip |
plugin/trace: fix struct allignment (#4112)
* plugin/trace: fix struct allignment
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>
* plugin/erratic does makes the same mistake
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/trace/trace.go')
-rw-r--r-- | plugin/trace/trace.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/trace/trace.go b/plugin/trace/trace.go index 84076126a..167a5a376 100644 --- a/plugin/trace/trace.go +++ b/plugin/trace/trace.go @@ -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 @@ -37,7 +39,6 @@ type trace struct { serviceName string clientServer bool every uint64 - count uint64 Once sync.Once } |