mirror of https://github.com/prometheus/prometheus
Fix alignment of atomic int64 (#11547)
* Fix atomix int64 placement * Test main for 386 Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>pull/11557/head
parent
c08d76b363
commit
739494d81b
|
@ -16,6 +16,7 @@ jobs:
|
||||||
- uses: ./.github/actions/setup_environment
|
- uses: ./.github/actions/setup_environment
|
||||||
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1
|
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1
|
||||||
- run: go test ./tsdb/ -test.tsdb-isolation=false
|
- run: go test ./tsdb/ -test.tsdb-isolation=false
|
||||||
|
- run: GOARCH=386 go test ./cmd/prometheus
|
||||||
- run: make -C documentation/examples/remote_storage
|
- run: make -C documentation/examples/remote_storage
|
||||||
- run: make -C documentation/examples
|
- run: make -C documentation/examples
|
||||||
- uses: ./.github/actions/check_proto
|
- uses: ./.github/actions/check_proto
|
||||||
|
|
|
@ -132,6 +132,9 @@ type HeadOptions struct {
|
||||||
// https://pkg.go.dev/sync/atomic#pkg-note-BUG
|
// https://pkg.go.dev/sync/atomic#pkg-note-BUG
|
||||||
MaxExemplars atomic.Int64
|
MaxExemplars atomic.Int64
|
||||||
|
|
||||||
|
OutOfOrderTimeWindow atomic.Int64
|
||||||
|
OutOfOrderCapMax atomic.Int64
|
||||||
|
|
||||||
// EnableNativeHistograms enables the ingestion of native histograms.
|
// EnableNativeHistograms enables the ingestion of native histograms.
|
||||||
EnableNativeHistograms atomic.Bool
|
EnableNativeHistograms atomic.Bool
|
||||||
|
|
||||||
|
@ -141,8 +144,6 @@ type HeadOptions struct {
|
||||||
ChunkPool chunkenc.Pool
|
ChunkPool chunkenc.Pool
|
||||||
ChunkWriteBufferSize int
|
ChunkWriteBufferSize int
|
||||||
ChunkWriteQueueSize int
|
ChunkWriteQueueSize int
|
||||||
OutOfOrderTimeWindow atomic.Int64
|
|
||||||
OutOfOrderCapMax atomic.Int64
|
|
||||||
|
|
||||||
// StripeSize sets the number of entries in the hash map, it must be a power of 2.
|
// StripeSize sets the number of entries in the hash map, it must be a power of 2.
|
||||||
// A larger StripeSize will allocate more memory up-front, but will increase performance when handling a large number of series.
|
// A larger StripeSize will allocate more memory up-front, but will increase performance when handling a large number of series.
|
||||||
|
|
Loading…
Reference in New Issue