MCPcopy Create free account
hub / github.com/rsc/tmp / WriteDisk

Method WriteDisk

mpt/internal/pmem/pmem.go:677–691  ·  view source on GitHub ↗

WriteDisk writes src to the disk-only file at offset off. It guarantees that on recovery after a crash, all disk writes that occurred before the latest recovered Mutate will be available for reading. (Disk writes that happened after that Mutate may or may not be available for reading as well.)

(src []byte, off int64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

initMethod · 0.80
setValMethod · 0.80

Calls 3

mutateMethod · 0.95
brokenMethod · 0.95
WriteAtMethod · 0.45

Tested by

no test coverage detected