prometheus/tsdb/chunks
György Krajcsovits 44ebbb8458 Fix missing histogram copy in sampleRing
The specialized version of sample add to the ring:
func addH(s hSample, buf []hSample, r *sampleRing) []hSample
func addFH(s fhSample, buf []fhSample, r *sampleRing) []fhSample
already correctly copy histogram samples from the reused hReader, fhReader
buffers, but the generic version does not. This means that the
data is overwritten on the next read if the sample ring has seen histogram
and float samples at the same time and switched to generic mode.

The `genericAdd` function (which was commented anyway) is by now quite
different from the specialized functions so that this commit deletes
it.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-10-02 13:57:28 +02:00
..
chunk_write_queue.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
chunk_write_queue_test.go
chunks.go TSDB: streamline reading of overlapping head chunks 2024-08-29 10:57:29 +01:00
chunks_test.go
head_chunks.go lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
head_chunks_other.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
head_chunks_test.go chore: fix some function names 2024-08-21 11:09:37 +08:00
head_chunks_windows.go
queue.go
queue_test.go Upgrade golangci-lint to v1.60.1 2024-08-18 12:13:25 +02:00
samples.go Fix missing histogram copy in sampleRing 2024-10-02 13:57:28 +02:00