From 96d3b4a878c5c4b0308c1e3b60f35fe8d6397fc0 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 9 Sep 2020 09:51:00 +0200 Subject: [PATCH] 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 --- plugin/trace/trace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/trace/trace.go b/plugin/trace/trace.go index 84076126a07..167a5a37645 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 }