From 638caf3b5882d497d417f0a64eeaaa8ed0ccf460 Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Tue, 28 Nov 2017 10:52:15 -0700 Subject: [PATCH] ensure correctly aligned for 32-bit architecture --- tsdb/index/inmem/meta.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tsdb/index/inmem/meta.go b/tsdb/index/inmem/meta.go index 277d5e6243..d374b37d45 100644 --- a/tsdb/index/inmem/meta.go +++ b/tsdb/index/inmem/meta.go @@ -1201,6 +1201,11 @@ func (a measurements) Union(other measurements) measurements { // series belong to a Measurement and represent unique time series in a database. type series struct { + // lastModified tracks the last time the series was created. If the series + // already exists and a request to create is received (a no-op), lastModified + // is increased to track that it is still in use. + lastModified int64 + // immutable ID uint64 Measurement *measurement @@ -1210,12 +1215,7 @@ type series struct { mu sync.RWMutex shardIDs map[uint64]struct{} // shards that have this series defined - // lastModified tracks the last time the series was created. If the series - // already exists and a request to create is received (a no-op), lastModified - // is increased to track that it is still in use. - lastModified int64 - - deleted bool + deleted bool } // newSeries returns an initialized series struct