prometheus/tsdb/chunks
Dieter Plaetinck d5afe0a577
TSDB: Use a dedicated head chunk reference type (#9501)
* Use dedicated Ref type

Throughout the code base, there are reference types masked as
regular integers.  Let's use dedicated types.  They are
equivalent, but clearer semantically.
This also makes it trivial to find where they are used,
and from uses, find the centralized docs.

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>

* postpone some work until after possible return

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>

* clarify

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>

* rename feedback

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>

* skip header is up to caller

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>
2021-10-13 17:44:32 +05:30
..
chunks.go MultiError: Refactored MultiError for more concise and safe usage. (#8066) 2020-10-28 15:24:58 +00:00
chunks_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
head_chunks.go TSDB: Use a dedicated head chunk reference type (#9501) 2021-10-13 17:44:32 +05:30
head_chunks_other.go Add new Go build tags. 2021-08-27 10:24:14 +02:00
head_chunks_test.go TSDB: Use a dedicated head chunk reference type (#9501) 2021-10-13 17:44:32 +05:30
head_chunks_windows.go Preallocate m-map file only for Windows (#7306) 2020-05-28 20:24:19 +05:30