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

Function OpenMergeFinaFile

engine/data/data_file.go:42–45  ·  view source on GitHub ↗

OpenMergeFinaFile opens the file that indicates merge completion.

(dirPath string, fileSize int64, fioType int8)

Source from the content-addressed store, hash-verified

40
41// OpenMergeFinaFile opens the file that indicates merge completion.
42func OpenMergeFinaFile(dirPath string, fileSize int64, fioType int8) (*DataFile, error) {
43 fileName := filepath.Join(dirPath, MergeFinaFileSuffix)
44 return newDataFile(fileName, 0, fileSize, fioType)
45}
46
47func newDataFile(dirPath string, fileID uint32, fileSize int64, fioType int8) (*DataFile, error) {
48 // Initialize the IOManager interface

Callers

nothing calls this directly

Calls 1

newDataFileFunction · 0.85

Tested by

no test coverage detected