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

Method AllowCompaction

modules/blockbuilder/tenant_store.go:203–213  ·  view source on GitHub ↗
(ctx context.Context, w tempodb.Writer)

Source from the content-addressed store, hash-verified

201}
202
203func (s *tenantStore) AllowCompaction(ctx context.Context, w tempodb.Writer) error {
204 if s.noCompactBlockID == nil {
205 return nil // no block to allow compaction for
206 }
207 if err := w.DeleteNoCompactFlag(ctx, s.tenantID, *s.noCompactBlockID); err != nil {
208 return err
209 }
210 s.noCompactBlockID = nil
211
212 return nil
213}
214
215// Adjust the time range based on when the record was added to the partition, factoring in slack and cycle duration.
216// Any span with a start or end time outside this range will be constrained to the valid limits.

Callers 3

writeHistoricalDataFunction · 0.80
allowCompactionMethod · 0.80

Calls 1

DeleteNoCompactFlagMethod · 0.65

Tested by 2

writeHistoricalDataFunction · 0.64