Skip to content

Commit

Permalink
Align batcher stats for i386
Browse files Browse the repository at this point in the history
Fixes issue #3213.
  • Loading branch information
otoolep committed Aug 10, 2015
1 parent f5c8280 commit 4809989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsdb/batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
// PointBatcher accepts Points and will emit a batch of those points when either
// a) the batch reaches a certain size, or b) a certain time passes.
type PointBatcher struct {
stats PointBatcherStats

size int
duration time.Duration

Expand All @@ -17,8 +19,6 @@ type PointBatcher struct {
out chan []Point
flush chan struct{}

stats PointBatcherStats

wg *sync.WaitGroup
}

Expand Down

1 comment on commit 4809989

@DanielMorsing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

This is a weird one. We should probably go through the atomics and see if there are any other of these waiting to blow up. http://golang.org/src/sync/atomic/doc.go?s=1207:1656#L36

Please sign in to comment.