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

Function ownsWALBlock

tempodb/encoding/vparquet4/wal_block.go:193–205  ·  view source on GitHub ↗
(entry fs.DirEntry)

Source from the content-addressed store, hash-verified

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

Callers 1

OwnsWALBlockMethod · 0.70

Calls 2

parseNameFunction · 0.70
NameMethod · 0.65

Tested by

no test coverage detected