| 212 | } |
| 213 | |
| 214 | type HeadAndOOOChunkReader struct { |
| 215 | head *Head |
| 216 | mint, maxt int64 |
| 217 | cr *headChunkReader // If nil, only read OOO chunks. |
| 218 | maxMmapRef chunks.ChunkDiskMapperRef |
| 219 | oooIsoState *oooIsolationState |
| 220 | headChunksBuf []*memChunk // Reusable buffer for collectHeadChunks when cr is nil. |
| 221 | } |
| 222 | |
| 223 | func NewHeadAndOOOChunkReader(head *Head, mint, maxt int64, cr *headChunkReader, oooIsoState *oooIsolationState, maxMmapRef chunks.ChunkDiskMapperRef) *HeadAndOOOChunkReader { |
| 224 | return &HeadAndOOOChunkReader{ |
nothing calls this directly
no outgoing calls
no test coverage detected