Tombstone renames the block's meta.json to meta.deleted.json. See common.WALBlock.Tombstone for semantics.
()
| 519 | // Tombstone renames the block's meta.json to meta.deleted.json. |
| 520 | // See common.WALBlock.Tombstone for semantics. |
| 521 | func (b *walBlock) Tombstone() error { |
| 522 | from := filepath.Join(b.walPath(), backend.MetaName) |
| 523 | to := filepath.Join(b.walPath(), backend.DeletedMetaName) |
| 524 | if err := os.Rename(from, to); err != nil { |
| 525 | if os.IsNotExist(err) { |
| 526 | return nil |
| 527 | } |
| 528 | return fmt.Errorf("failed to tombstone wal block %s: %w", b.meta.BlockID, err) |
| 529 | } |
| 530 | return nil |
| 531 | } |
| 532 | |
| 533 | func (b *walBlock) FindTraceByID(ctx context.Context, id common.ID, opts common.SearchOptions) (*tempopb.TraceByIDResponse, error) { |
| 534 | trs := make([]*tempopb.Trace, 0) |