From 8b57d1851bf8d6d0504d4d3e52f9daedc89918ed Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Mon, 26 Feb 2018 17:05:54 -0800 Subject: [PATCH] lfsapi: note alignment issue in *httpTransfer --- lfsapi/stats.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lfsapi/stats.go b/lfsapi/stats.go index f45c5129..9d0b42d8 100644 --- a/lfsapi/stats.go +++ b/lfsapi/stats.go @@ -16,9 +16,9 @@ import ( ) type httpTransfer struct { - URL string - Method string - Key string + // members managed via sync/atomic must be aligned at the top of this + // structure (see: https://github.com/git-lfs/git-lfs/pull/2880). + RequestBodySize int64 Start int64 ResponseStart int64 @@ -28,6 +28,9 @@ type httpTransfer struct { DNSEnd int64 TLSStart int64 TLSEnd int64 + URL string + Method string + Key string } type statsContextKey string