(entry fs.DirEntry)
| 193 | } |
| 194 | |
| 195 | func 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 | |
| 209 | type walBlockFlush struct { |
| 210 | path string |
no test coverage detected