MCPcopy
hub / github.com/dgraph-io/dgraph / delete

Method delete

raftwal/log.go:242–249  ·  view source on GitHub ↗

delete unmaps and deletes the file.

()

Source from the content-addressed store, hash-verified

240
241// delete unmaps and deletes the file.
242func (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.

Callers 4

AddEntriesMethod · 0.45
deleteBeforeMethod · 0.45
resetMethod · 0.45
openWalFunction · 0.45

Calls 4

InfofMethod · 0.80
NameMethod · 0.65
DeleteMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected