(blockID uuid.UUID, tenantID string)
| 79 | } |
| 80 | |
| 81 | func (rw *readerWriter) CompactedBlockMeta(blockID uuid.UUID, tenantID string) (*backend.CompactedBlockMeta, error) { |
| 82 | name := backend.CompactedMetaFileName(blockID, tenantID, rw.cfg.Prefix) |
| 83 | |
| 84 | bytes, attrs, err := rw.readAll(context.Background(), name) |
| 85 | if err != nil { |
| 86 | return nil, readError(err) |
| 87 | } |
| 88 | |
| 89 | out := &backend.CompactedBlockMeta{} |
| 90 | err = json.Unmarshal(bytes, out) |
| 91 | if err != nil { |
| 92 | return nil, err |
| 93 | } |
| 94 | out.CompactedTime = attrs.LastModified |
| 95 | |
| 96 | return out, nil |
| 97 | } |
nothing calls this directly
no test coverage detected