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

Method Clear

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

Source from the content-addressed store, hash-verified

515}
516
517func (b *walBlock) Clear() error {
518 var errs multierror.MultiError
519 if b.file != nil {
520 errClose := b.file.Close()
521 errs.Add(errClose)
522 }
523
524 errRemoveAll := os.RemoveAll(b.walPath())
525 errs.Add(errRemoveAll)
526
527 return errs.Err()
528}
529
530// Tombstone renames the block's meta.json to meta.deleted.json.
531// 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