ForceHeadMMap is intended for use only in tests and benchmarks.
()
| 2305 | |
| 2306 | // ForceHeadMMap is intended for use only in tests and benchmarks. |
| 2307 | func (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. |