ensure correctly aligned for 32-bit architecture
parent
455013a486
commit
638caf3b58
tsdb/index/inmem
|
@ -1201,6 +1201,11 @@ func (a measurements) Union(other measurements) measurements {
|
||||||
|
|
||||||
// series belong to a Measurement and represent unique time series in a database.
|
// series belong to a Measurement and represent unique time series in a database.
|
||||||
type series struct {
|
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
|
// immutable
|
||||||
ID uint64
|
ID uint64
|
||||||
Measurement *measurement
|
Measurement *measurement
|
||||||
|
@ -1210,12 +1215,7 @@ type series struct {
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
shardIDs map[uint64]struct{} // shards that have this series defined
|
shardIDs map[uint64]struct{} // shards that have this series defined
|
||||||
|
|
||||||
// lastModified tracks the last time the series was created. If the series
|
deleted bool
|
||||||
// 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// newSeries returns an initialized series struct
|
// newSeries returns an initialized series struct
|
||||||
|
|
Loading…
Reference in New Issue