GetDataFileReadOnly will return a DataFile Object for read-only operations This method skips file truncation to improve read performance
(path string, capacity int64)
| 38 | // GetDataFileReadOnly will return a DataFile Object for read-only operations |
| 39 | // This method skips file truncation to improve read performance |
| 40 | func (fm *FileManager) GetDataFileReadOnly(path string, capacity int64) (datafile *DataFile, err error) { |
| 41 | return fm.getDataFileWithMode(path, capacity, true) |
| 42 | } |
| 43 | |
| 44 | // getDataFileWithMode will return a DataFile Object with specified read-only mode |
| 45 | func (fm *FileManager) getDataFileWithMode(path string, capacity int64, readOnly bool) (datafile *DataFile, err error) { |
no test coverage detected