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

Function ownsWALBlock

tempodb/encoding/vparquet5/wal_block.go:195–207  ·  view source on GitHub ↗
(entry fs.DirEntry)

Source from the content-addressed store, hash-verified

193}
194
195func ownsWALBlock(entry fs.DirEntry) bool {
196 // all vParquet wal blocks are folders
197 if !entry.IsDir() {
198 return false
199 }
200
201 _, _, version, err := parseName(entry.Name())
202 if err != nil {
203 return false
204 }
205
206 return version == VersionString
207}
208
209type walBlockFlush struct {
210 path string

Callers 1

OwnsWALBlockMethod · 0.70

Calls 2

parseNameFunction · 0.70
NameMethod · 0.65

Tested by

no test coverage detected