MCPcopy
hub / github.com/grafana/tempo / Clear

Method Clear

tempodb/encoding/vparquet3/wal_block.go:506–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504}
505
506func (b *walBlock) Clear() error {
507 var errs multierror.MultiError
508 if b.file != nil {
509 errClose := b.file.Close()
510 errs.Add(errClose)
511 }
512
513 errRemoveAll := os.RemoveAll(b.walPath())
514 errs.Add(errRemoveAll)
515
516 return errs.Err()
517}
518
519// Tombstone renames the block's meta.json to meta.deleted.json.
520// See common.WALBlock.Tombstone for semantics.

Callers

nothing calls this directly

Calls 3

walPathMethod · 0.95
CloseMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected