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

Method Clear

tempodb/encoding/vparquet5/wal_block.go:531–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

529}
530
531func (b *walBlock) Clear() error {
532 var errs multierror.MultiError
533 if b.file != nil {
534 errClose := b.file.Close()
535 errs.Add(errClose)
536 }
537
538 errRemoveAll := os.RemoveAll(b.walPath())
539 errs.Add(errRemoveAll)
540
541 return errs.Err()
542}
543
544// Tombstone renames the block's meta.json to meta.deleted.json. Idempotent
545// for already-tombstoned blocks (returns nil if meta.json is missing).

Callers

nothing calls this directly

Calls 3

walPathMethod · 0.95
CloseMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected