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