delete unmaps and deletes the file.
()
| 240 | |
| 241 | // delete unmaps and deletes the file. |
| 242 | func (lf *logFile) delete() error { |
| 243 | glog.V(2).Infof("Deleting file: %s\n", lf.Fd.Name()) |
| 244 | err := lf.Delete() |
| 245 | if err != nil { |
| 246 | glog.Errorf("while deleting file: %s, error: %v\n", lf.Fd.Name(), err) |
| 247 | } |
| 248 | return err |
| 249 | } |
| 250 | |
| 251 | // getLogFiles returns all the log files in the directory sorted by the first |
| 252 | // index in each file. |
no test coverage detected