Move fields under mutex

pull/6729/head
Edd Robinson 2016-05-26 12:00:46 +01:00
parent 1d467ab2e3
commit 1e0a4e9119
1 changed files with 6 additions and 7 deletions

View File

@ -40,16 +40,15 @@ const (
type Engine struct {
mu sync.RWMutex
done chan struct{}
index *tsdb.DatabaseIndex // TODO(benbjohnson): needs to be moved entirely into engine.
measurementFields map[string]*tsdb.MeasurementFields
wg sync.WaitGroup
path string
logger *log.Logger
logOutput io.Writer
// TODO(benbjohnson): Index needs to be moved entirely into engine.
index *tsdb.DatabaseIndex
measurementFields map[string]*tsdb.MeasurementFields
WAL *WAL
Cache *Cache
Compactor *Compactor