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

Function ownsWALBlock

tempodb/encoding/vparquet3/wal_block.go:186–198  ·  view source on GitHub ↗
(entry fs.DirEntry)

Source from the content-addressed store, hash-verified

184}
185
186func ownsWALBlock(entry fs.DirEntry) bool {
187 // all vParquet wal blocks are folders
188 if !entry.IsDir() {
189 return false
190 }
191
192 _, _, version, err := parseName(entry.Name())
193 if err != nil {
194 return false
195 }
196
197 return version == VersionString
198}
199
200type walBlockFlush struct {
201 path string

Callers 1

OwnsWALBlockMethod · 0.70

Calls 2

parseNameFunction · 0.70
NameMethod · 0.65

Tested by

no test coverage detected