MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / OpenHintFile

Function OpenHintFile

engine/data/data_file.go:36–39  ·  view source on GitHub ↗

OpenHintFile opens the hint index file.

(dirPath string, fileSize int64, fioType int8)

Source from the content-addressed store, hash-verified

34
35// OpenHintFile opens the hint index file.
36func OpenHintFile(dirPath string, fileSize int64, fioType int8) (*DataFile, error) {
37 fileName := filepath.Join(dirPath, HintFileSuffix)
38 return newDataFile(fileName, 0, fileSize, fioType)
39}
40
41// OpenMergeFinaFile opens the file that indicates merge completion.
42func OpenMergeFinaFile(dirPath string, fileSize int64, fioType int8) (*DataFile, error) {

Callers

nothing calls this directly

Calls 1

newDataFileFunction · 0.85

Tested by

no test coverage detected