MCPcopy
hub / github.com/prometheus/prometheus / ForceHeadMMap

Method ForceHeadMMap

tsdb/db.go:2307–2309  ·  view source on GitHub ↗

ForceHeadMMap is intended for use only in tests and benchmarks.

()

Source from the content-addressed store, hash-verified

2305
2306// ForceHeadMMap is intended for use only in tests and benchmarks.
2307func (db *DB) ForceHeadMMap() {
2308 db.head.mmapHeadChunks()
2309}
2310
2311// Snapshot writes the current data to the directory. If withHead is set to true it
2312// will create a new block containing all data that's currently in the memory buffer/WAL.

Calls 1

mmapHeadChunksMethod · 0.80