(entry fs.DirEntry)
| 191 | } |
| 192 | |
| 193 | func 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 | |
| 207 | type walBlockFlush struct { |
| 208 | path string |
no test coverage detected