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

Function writeTenantBlocks

integration/storage/poller_test.go:298–309  ·  view source on GitHub ↗
(t *testing.T, w backend.Writer, tenant string, blockIDs []uuid.UUID)

Source from the content-addressed store, hash-verified

296}
297
298func writeTenantBlocks(t *testing.T, w backend.Writer, tenant string, blockIDs []uuid.UUID) {
299 var err error
300 for _, b := range blockIDs {
301 meta := &backend.BlockMeta{
302 BlockID: backend.UUID(b),
303 TenantID: tenant,
304 }
305
306 err = w.WriteBlockMeta(context.Background(), meta)
307 require.NoError(t, err)
308 }
309}
310
311func decrementUUIDBytes(uuidBytes []byte) {
312 for i := len(uuidBytes) - 1; i >= 0; i-- {

Callers 1

pushBlocksToTenantFunction · 0.70

Calls 2

UUIDTypeAlias · 0.92
WriteBlockMetaMethod · 0.65

Tested by

no test coverage detected