From deef0c56496ba76e0e829c811dfd9100ba173633 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Wed, 20 Sep 2017 10:00:20 -0600 Subject: [PATCH] Fix 32bit alignment --- tsdb/engine/tsm1/ring.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tsdb/engine/tsm1/ring.go b/tsdb/engine/tsm1/ring.go index b1afec6355..1eeeaf4ffe 100644 --- a/tsdb/engine/tsm1/ring.go +++ b/tsdb/engine/tsm1/ring.go @@ -32,15 +32,15 @@ const partitions = 4096 // key is hashed and the first 8 bits are used as an index to the ring. // type ring struct { - // The unique set of partitions in the ring. - // len(partitions) <= len(continuum) - partitions []*partition - // Number of keys within the ring. This is used to provide a hint for // allocating the return values in keys(). It will not be perfectly accurate // since it doesn't consider adding duplicate keys, or trying to remove non- // existent keys. keysHint int64 + + // The unique set of partitions in the ring. + // len(partitions) <= len(continuum) + partitions []*partition } // newring returns a new ring initialised with n partitions. n must always be a